]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-live/dmsquash-live-root.sh: Physically write overlay reset at time of request
authorFrederick Grose <fgrose@gmail.com>
Thu, 6 Sep 2012 08:48:37 +0000 (10:48 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 6 Sep 2012 08:48:37 +0000 (10:48 +0200)
modules.d/90dmsquash-live/dmsquash-live-root.sh

index f8bfca653aeb87843df96b881c1ee5e3813d703d..a7bb202b2d33a8c27f74f3554c6c112759952cee 100755 (executable)
@@ -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