mirror of
https://github.com/Le0xFF/VoidLinuxInstaller.git
synced 2024-11-22 02:46:31 +03:00
Fix mounting folders for chroot, fixes issue #6
This commit is contained in:
parent
02cdd89d21
commit
14de907f4d
8
vli.sh
8
vli.sh
@ -2924,10 +2924,10 @@ function install_base_system_and_chroot {
|
||||
fi
|
||||
|
||||
echo -e -n "\nMounting folders for chroot...\n"
|
||||
for dir in sys dev proc ; do
|
||||
mount --rbind /$dir /mnt/$dir
|
||||
mount --make-rslave /mnt/$dir
|
||||
done
|
||||
mount -t proc none /mnt/proc
|
||||
mount -t sysfs none /mnt/sys
|
||||
mount --rbind /dev /mnt/dev
|
||||
mount --rbind /run /mnt/run
|
||||
mount --rbind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars/
|
||||
|
||||
echo -e -n "\nCopying /etc/resolv.conf...\n"
|
||||
|
Loading…
Reference in New Issue
Block a user