diff options
Diffstat (limited to '.local/bin/debmnt')
-rwxr-xr-x | .local/bin/debmnt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.local/bin/debmnt b/.local/bin/debmnt new file mode 100755 index 0000000..2928194 --- /dev/null +++ b/.local/bin/debmnt @@ -0,0 +1,17 @@ +#!/bin/sh + +echo "devfs /compat/debian/dev devfs rw 0 0" >> /etc/fstab +echo "fdescfs /compat/debian/dev/fd fdescfs rw,linrdlnk 0 1" >> /etc/fstab +echo "linsys /compat/debian/sys linsysfs rw 0 0" >> /etc/fstab +echo "linproc /compat/debian/proc linprocfs rw 0 0" >> /etc/fstab + +mount /compat/debian/dev +mount /compat/debian/dev/fd +mount /compat/debian/proc +mount /compat/debian/sys + +sysctl compat.linux.osrelease=4.19.0 +kldload linux +kldload linux64 + +chroot /compat/debian /bin/bash |