blob: cdba1e2fe1d63ee8303a51558ce2e2943cd64725 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
# echo "devfs /usr/local/jails/devuan/dev devfs rw 0 0" >> /etc/fstab
# echo "fdescfs /usr/local/jails/devuan/dev/fd fdescfs rw,linrdlnk 0 1" >> /etc/fstab
# echo "linsys /usr/local/jails/devuan/sys linsysfs rw 0 0" >> /etc/fstab
# echo "linproc /usr/local/jails/devuan/proc linprocfs rw 0 0" >> /etc/fstab
# echo "tmpfs /usr/local/jails/devuan/tmp tmpfs rw,late,mode=1777 0 0" >> /etc/fstab
kldload linux
kldload linux64
jail -c devuan
jexec -l devuan /bin/bash
# mount /usr/local/jails/devuan/dev
# mount /usr/local/jails/devuan/dev/fd
# mount -F /etc/fstab.devuan /usr/local/jails/devuan/proc
# mount -F /etc/fstab.devuan /usr/local/jails/devuan/sys
# mount -F /etc/fstab.devuan /usr/local/jails/devuan/tmp
# mount -t devfs none /usr/local/jails/devuan/dev
# sysctl compat.linux.osrelease=4.19.0
# chroot /usr/local/jails/devuan /bin/bash
|