installer.sh: make sure it doesn't bind-mount new system itself under $MOUNTPOINT/mnt/install
This commit is contained in:
parent
15ca28c991
commit
367f02a823
@ -518,11 +518,11 @@ if [ "$INSTALL_BOOTLOADER_DEVICE" -o "$INSTALL_BOOTLOADER_DEVICE_EFI" ]; then
|
|||||||
mount -o bind /mnt $MOUNTPOINT/mnt
|
mount -o bind /mnt $MOUNTPOINT/mnt
|
||||||
mount -o bind /var/run/dbus $MOUNTPOINT/var/run/dbus
|
mount -o bind /var/run/dbus $MOUNTPOINT/var/run/dbus
|
||||||
for d in /mnt/*; do
|
for d in /mnt/*; do
|
||||||
[ -d $d ] && mount -o bind,ro $d ${MOUNTPOINT}${d}
|
[ -d $d -a "$d" != "${MOUNTPOINT}" ] && mount -o bind $d ${MOUNTPOINT}${d}
|
||||||
done
|
done
|
||||||
chroot $MOUNTPOINT grub-mkconfig -o /boot/grub/grub.cfg
|
chroot $MOUNTPOINT update-grub
|
||||||
for d in /mnt/*; do
|
for d in /mnt/*; do
|
||||||
[ -d $d ] && umount ${MOUNTPOINT}${d}
|
[ -d $d -a "$d" != "${MOUNTPOINT}" ] && umount ${MOUNTPOINT}${d}
|
||||||
done
|
done
|
||||||
umount $MOUNTPOINT/var/run/dbus
|
umount $MOUNTPOINT/var/run/dbus
|
||||||
umount $MOUNTPOINT/mnt
|
umount $MOUNTPOINT/mnt
|
||||||
|
Loading…
Reference in New Issue
Block a user