[Fedora-livecd-list] [PATCH] Don't truncate the overlay file on a reset.

Frederick Grose fgrose at gmail.com
Thu Aug 30 01:15:34 UTC 2012


commit d0d4f29cdd0a0e6dd1170965decb282ef5511746
Author: Frederick Grose <fgrose at sugarlabs.org>
Date:   Wed Aug 29 21:02:07 2012 -0400

    Don't truncate the overlay file on a reset.

diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh
b/modules.d/90dmsquash-live/dmsquash-live-root.sh
index f8bfca6..62340a5 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=notrunc 2>/dev/null
             fi
             setup="yes"
         fi


More information about the livecd mailing list