From 36b39b2954423b78935265cc1f6d1ab59fc7de6e Mon Sep 17 00:00:00 2001 From: Syahrial Agni Prasetya Date: Wed, 3 Mar 2021 00:44:43 +0700 Subject: [PATCH] Fix symlinked kernel module directory mounting. --- archboxinit.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archboxinit.bash b/archboxinit.bash index f085b58..f16e445 100644 --- a/archboxinit.bash +++ b/archboxinit.bash @@ -31,7 +31,7 @@ case $1 in rbind /sys make-rslave rbind /dev make-rslave [[ $MOUNT_RUN = "yes" ]] && rbind /run - [[ $MOUNT_MOD = "yes" ]] && rbind /lib/modules && rbind /boot + [[ $MOUNT_MOD = "yes" ]] && rbind $(readlink -f /lib/modules) && rbind /boot [[ -d /var/lib/dbus ]] && rbind /var/lib/dbus for i in ${SHARED_FOLDER[@]}; do mkdir -p $CHROOT/$i @@ -62,7 +62,7 @@ case $1 in rmbind /sys rmbind /dev [[ $MOUNT_RUN = "yes" ]] && rmbind /run - [[ $MOUNT_MOD = "yes" ]] && rmbind /lib/modules && rmbind /boot + [[ $MOUNT_MOD = "yes" ]] && rmbind $(readlink -f /lib/modules) && rmbind /boot rmbind /var/lib/dbus for i in ${SHARED_FOLDER[@]}; do rmbind $i