From ef7d2a00a5302fbec00e86efcf7b2be7576e795e Mon Sep 17 00:00:00 2001 From: lemniskett Date: Fri, 13 Nov 2020 17:31:07 +0700 Subject: [PATCH] Mount rslave. --- archboxinit.bash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/archboxinit.bash b/archboxinit.bash index 130de5e..57c985a 100755 --- a/archboxinit.bash +++ b/archboxinit.bash @@ -8,11 +8,14 @@ case $1 in mount -t proc /proc $CHROOT/proc mount -R /tmp $CHROOT/tmp mount -R /sys $CHROOT/sys + mount --make-rslave $CHROOT/sys mount -R /dev $CHROOT/dev + mount --make-rslave $CHROOT/dev mount -R /run $CHROOT/run mount -R /lib/modules $CHROOT/lib/modules mount -R /boot $CHROOT/boot mount -R /var/lib/dbus $CHROOT/var/lib/dbus + mount -R / $CHROOT/var/host chroot $CHROOT /usr/local/bin/serviced >/dev/null 2>&1 exit 0 ;; @@ -26,6 +29,7 @@ case $1 in umount -R $CHROOT/lib/modules umount -R $CHROOT/boot umount -R $CHROOT/var/lib/dbus + umount -R $CHROOT/var/host exit 0 ;; esac