summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-05-05 15:03:02 +0200
committerJoe <bousset.rudy@gmail.com>2022-05-05 15:03:02 +0200
commit6cf46cb30b4426284ac15c5b05195615eaa151e7 (patch)
treedb35a8e846923c97026c71b7976d4526b72ae2d9 /.local/bin
parentin progress (diff)
downloaddotfiles-bsd-6cf46cb30b4426284ac15c5b05195615eaa151e7.tar.gz
dotfiles-bsd-6cf46cb30b4426284ac15c5b05195615eaa151e7.tar.bz2
dotfiles-bsd-6cf46cb30b4426284ac15c5b05195615eaa151e7.tar.xz
dotfiles-bsd-6cf46cb30b4426284ac15c5b05195615eaa151e7.tar.zst
dotfiles-bsd-6cf46cb30b4426284ac15c5b05195615eaa151e7.zip
Jail update
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/debmnt26
-rwxr-xr-x.local/bin/debumnt10
2 files changed, 21 insertions, 15 deletions
diff --git a/.local/bin/debmnt b/.local/bin/debmnt
index bfef319..d48b6b6 100755
--- a/.local/bin/debmnt
+++ b/.local/bin/debmnt
@@ -1,17 +1,21 @@
#!/bin/sh
-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
+# 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
-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/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
diff --git a/.local/bin/debumnt b/.local/bin/debumnt
index 3abb697..3d03f42 100755
--- a/.local/bin/debumnt
+++ b/.local/bin/debumnt
@@ -1,9 +1,11 @@
#!/bin/sh
-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
+# umount /usr/local/jails/devuan/dev
+# umount /usr/local/jails/devuan/dev/fd
+umount /usr/local/jails/devuan/proc
+umount /usr/local/jails/devuan/sys
+umount /usr/local/jails/devuan/tmp
+umount /usr/local/jails/devuan/dev
sed -i '' '/devuan/d' /etc/fstab