Merging casper 1.183.
[live-boot-grml.git] / debian / live-initramfs.init
index 3204924..1ba8d5c 100644 (file)
@@ -137,11 +137,6 @@ do_stop ()
 
        if [ -z ${QUICKREBOOT} ]
        then
-               # in order to deal with the aufs unmount problem, we do a sync here.
-               sync
-               sleep 1
-               sync
-
                # TODO: i18n
                BOOT_DEVICE="$(get_boot_device)"
 
@@ -161,9 +156,10 @@ do_stop ()
                                eject -p -m /live/image >/dev/null 2>&1
                        fi
 
-                       [ "$prompt" ] || return 0
                fi
 
+               [ "$prompt" ] || return 0
+
                stty sane < /dev/console
 
                printf "\n\n${MESSAGE} and press ENTER to continue:" > /dev/console
@@ -197,6 +193,8 @@ case "${1}" in
                                [ "${VERBOSE}" != no ] && log_end_msg 1
                                ;;
                esac
+
+               mount -o remount,ro /live/cow
                ;;
 
        *)