From abe0043c30797b4a6395ea0c45b98fb1fefb8c49 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 5 May 2022 12:09:50 +0200 Subject: Debian jails incomming --- .local/bin/debmnt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 .local/bin/debmnt (limited to '.local/bin/debmnt') 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 -- cgit v1.2.3