Adding additional two sync calls before powerof happens in order to deal with 'does...
authorDaniel Baumann <daniel@debian.org>
Fri, 25 Sep 2009 15:22:52 +0000 (17:22 +0200)
committerDaniel Baumann <daniel@debian.org>
Fri, 25 Sep 2009 15:22:52 +0000 (17:22 +0200)
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)"