From: Frederick Grose Date: Thu, 6 Sep 2012 08:48:37 +0000 (+0200) Subject: dmsquash-live/dmsquash-live-root.sh: Physically write overlay reset at time of request X-Git-Tag: 024~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0db77f5a2b32ed0bc3587fa54bc078e286f16947;p=thirdparty%2Fdracut.git dmsquash-live/dmsquash-live-root.sh: Physically write overlay reset at time of request --- diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh index f8bfca653..a7bb202b2 100755 --- a/modules.d/90dmsquash-live/dmsquash-live-root.sh +++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh @@ -98,7 +98,7 @@ do_live_overlay() { if [ -f /run/initramfs/overlayfs$pathspec -a -w /run/initramfs/overlayfs$pathspec ]; then losetup $OVERLAY_LOOPDEV /run/initramfs/overlayfs$pathspec if [ -n "$reset_overlay" ]; then - dd if=/dev/zero of=$OVERLAY_LOOPDEV bs=64k count=1 2>/dev/null + dd if=/dev/zero of=$OVERLAY_LOOPDEV bs=64k count=1 conv=fsync 2>/dev/null fi setup="yes" fi