File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1411,12 +1411,9 @@ mount_boot_target() {
14111411 if grep -q " $MOUNT_BOOT " /proc/mounts ; then
14121412 ewarn " $MOUNT_BOOT already mounted, continuing anyway." ; eend 0
14131413 else
1414- if ! [ -d " ${MNTPOINT} /boot" ] ; then
1415- [ -n " $VIRTUAL " ] || mkdir -p " ${MNTPOINT} /boot"
1416- fi
14171414 einfo " Mounting $MOUNT_BOOT to $MNTPOINT /boot"
14181415 mkdir -p " $MNTPOINT /boot"
1419- mount -o rw,suid,dev " $MOUNT_BOOT " " $MNTPOINT /boot"
1416+ mount -o rw " $MOUNT_BOOT " " $MNTPOINT /boot"
14201417 eend $?
14211418 fi
14221419 fi
@@ -1546,6 +1543,10 @@ umount_target() {
15461543
15471544 try_umount 3 " ${MNTPOINT} " /boot/efi
15481545
1546+ if [ -n " $MOUNT_BOOT " ] ; then
1547+ try_umount 3 " ${MNTPOINT} " /boot
1548+ fi
1549+
15491550 try_umount 3 " ${MNTPOINT} "
15501551 kpartx -d " ${ORIG_TARGET} " > /dev/null
15511552 # Workaround for a bug in kpartx which doesn't clean up properly,
You can’t perform that action at this time.
0 commit comments