Fix mounting folders for chroot, fixes issue #6

This commit is contained in:
Le0xFF 2023-07-27 15:43:41 +02:00
parent 02cdd89d21
commit 14de907f4d

8
vli.sh
View File

@ -2924,10 +2924,10 @@ function install_base_system_and_chroot {
fi fi
echo -e -n "\nMounting folders for chroot...\n" echo -e -n "\nMounting folders for chroot...\n"
for dir in sys dev proc ; do mount -t proc none /mnt/proc
mount --rbind /$dir /mnt/$dir mount -t sysfs none /mnt/sys
mount --make-rslave /mnt/$dir mount --rbind /dev /mnt/dev
done mount --rbind /run /mnt/run
mount --rbind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars/ mount --rbind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars/
echo -e -n "\nCopying /etc/resolv.conf...\n" echo -e -n "\nCopying /etc/resolv.conf...\n"