From 2eb46e45daa7883cde61acf519270faef6f76ded Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 25 Sep 2009 17:22:52 +0200 Subject: [PATCH] Adding additional two sync calls before powerof happens in order to deal with 'does not cleanly unmount' problem when using root persistency. --- debian/live-initramfs.init | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/live-initramfs.init b/debian/live-initramfs.init index 07f707c..3204924 100644 --- a/debian/live-initramfs.init +++ b/debian/live-initramfs.init @@ -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)" -- 2.1.4