From: Harald Hoyer Date: Fri, 20 May 2011 11:00:46 +0000 (+0200) Subject: dracut: fix overlayfs paths X-Git-Tag: 011~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3da7836035735f2a679bfca03dda7b370619f8ef;p=thirdparty%2Fdracut.git dracut: fix overlayfs paths --- diff --git a/modules.d/90dmsquash-live/dmsquash-live-root b/modules.d/90dmsquash-live/dmsquash-live-root index f7498f25d..4d1d9024a 100755 --- a/modules.d/90dmsquash-live/dmsquash-live-root +++ b/modules.d/90dmsquash-live/dmsquash-live-root @@ -86,9 +86,9 @@ do_live_overlay() { setup="" if [ -n "$devspec" -a -n "$pathspec" -a -n "$overlay" ]; then mkdir -m 0755 /run/initramfs/overlayfs - mount -n -t auto $devspec /overlayfs || : - if [ -f /overlayfs$pathspec -a -w /overlayfs$pathspec ]; then - losetup $OVERLAY_LOOPDEV /overlayfs$pathspec + mount -n -t auto $devspec /run/initramfs/overlayfs || : + 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 fi