Adding additional two sync calls before powerof happens in order to deal with 'does...
[live-boot-grml.git] / debian / live-initramfs.init
index 07f707c..3204924 100644 (file)
@@ -137,6 +137,11 @@ 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)"