From: Harald Hoyer Date: Tue, 1 Dec 2015 07:52:00 +0000 (+0100) Subject: dmsquash-live/dmsquash-live-root.sh: SQUASHED can be set earlier X-Git-Tag: 045~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce9a398771d6e8503d767b450282db52b7a4b482;p=thirdparty%2Fdracut.git dmsquash-live/dmsquash-live-root.sh: SQUASHED can be set earlier 8b5ee88ff667693b2d8da85a8552ad8f5ab95127 removed the check for SQUASHED, assuming, that the if clause above was the only place, where SQUASHED is set. This patch reverts to the old logic, because SQUASHED can be set earlier. --- diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh index fa44a03f8..68d076cb9 100755 --- a/modules.d/90dmsquash-live/dmsquash-live-root.sh +++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh @@ -203,6 +203,9 @@ fi # we might have an embedded fs image on squashfs (compressed live) if [ -e /run/initramfs/live/${live_dir}/${squash_image} ]; then SQUASHED="/run/initramfs/live/${live_dir}/${squash_image}" +fi + +if [ -e "$SQUASHED" ] ; then if [ -n "$live_ram" ]; then echo "Copying live image to RAM..." echo "(this may take a few minutes)"