summaryrefslogtreecommitdiffstats
path: root/.local/bin/debmnt
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-05-05 12:09:50 +0200
committerJoe <bousset.rudy@gmail.com>2022-05-05 12:09:50 +0200
commitabe0043c30797b4a6395ea0c45b98fb1fefb8c49 (patch)
tree0b307f5f1a9cf0b9713d315e34c6eecdd7799b68 /.local/bin/debmnt
parentscrot script update (diff)
downloaddotfiles-bsd-abe0043c30797b4a6395ea0c45b98fb1fefb8c49.tar.gz
dotfiles-bsd-abe0043c30797b4a6395ea0c45b98fb1fefb8c49.tar.bz2
dotfiles-bsd-abe0043c30797b4a6395ea0c45b98fb1fefb8c49.tar.xz
dotfiles-bsd-abe0043c30797b4a6395ea0c45b98fb1fefb8c49.tar.zst
dotfiles-bsd-abe0043c30797b4a6395ea0c45b98fb1fefb8c49.zip
Debian jails incomming
Diffstat (limited to '.local/bin/debmnt')
-rwxr-xr-x.local/bin/debmnt17
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