From: Brian C. Lane Date: Wed, 4 Jan 2012 17:21:05 +0000 (-0800) Subject: Fix live update script (#769970) X-Git-Tag: 015~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14599cd760203a43be992c50fa1dc6a4c6e473ea;p=thirdparty%2Fdracut.git Fix live update script (#769970) pushd and popd are not available in the shell used by dracut. --- diff --git a/modules.d/90dmsquash-live/apply-live-updates.sh b/modules.d/90dmsquash-live/apply-live-updates.sh index 8dce5d458..f840d1a28 100755 --- a/modules.d/90dmsquash-live/apply-live-updates.sh +++ b/modules.d/90dmsquash-live/apply-live-updates.sh @@ -1,8 +1,9 @@ #!/bin/sh if [ -b /dev/mapper/live-rw ]; then - if pushd /updates &>/dev/null; then + if [ -d /updates ]; then echo "Applying updates to live image..." + cd /updates /bin/cp -a -t $NEWROOT . - popd &>/dev/null + cd - fi fi