Skip to content

Commit 7e75f92

Browse files
author
Robert Schönherr
committed
Umount hinzugefügt, einige Hinweise von grml#119 berücksichtigt
1 parent cbfba6d commit 7e75f92

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

grml-debootstrap

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)