From 0ce03ae4b1abdce574da003e3d6950d329504085 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 5 May 2022 13:33:53 +0200 Subject: in progress --- .local/bin/debmnt | 18 +++++++++--------- .local/bin/debumnt | 11 ++++++----- 2 files changed, 15 insertions(+), 14 deletions(-) (limited to '.local') diff --git a/.local/bin/debmnt b/.local/bin/debmnt index 2928194..bfef319 100755 --- a/.local/bin/debmnt +++ b/.local/bin/debmnt @@ -1,17 +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 +echo "devfs /usr/loacal/jails/devuan/dev devfs rw 0 0" >> /etc/fstab +echo "fdescfs /usr/loacal/jails/devuan/dev/fd fdescfs rw,linrdlnk 0 1" >> /etc/fstab +echo "linsys /usr/loacal/jails/devuan/sys linsysfs rw 0 0" >> /etc/fstab +echo "linproc /usr/loacal/jails/devuan/proc linprocfs rw 0 0" >> /etc/fstab -mount /compat/debian/dev -mount /compat/debian/dev/fd -mount /compat/debian/proc -mount /compat/debian/sys +mount /usr/loacal/jails/devuan/dev +mount /usr/loacal/jails/devuan/dev/fd +mount /usr/loacal/jails/devuan/proc +mount /usr/loacal/jails/devuan/sys sysctl compat.linux.osrelease=4.19.0 kldload linux kldload linux64 -chroot /compat/debian /bin/bash +chroot /compat/devuan /bin/bash diff --git a/.local/bin/debumnt b/.local/bin/debumnt index ad592b7..3abb697 100755 --- a/.local/bin/debumnt +++ b/.local/bin/debumnt @@ -1,10 +1,11 @@ #!/bin/sh -umount /compat/debian/dev -umount /compat/debian/dev/fd -umount /compat/debian/proc -umount /compat/debian/sys +umount /usr/loacal/jails/devuan/dev +umount /usr/loacal/jails/devuan/dev/fd +umount /usr/loacal/jails/devuan/proc +umount /usr/loacal/jails/devuan/sys -sed -i '' '/debian/d' /etc/fstab +sed -i '' '/devuan/d' /etc/fstab kldunload linux +kldunload linux64 -- cgit v1.2.3