]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Fix live update script (#769970)
authorBrian C. Lane <bcl@redhat.com>
Wed, 4 Jan 2012 17:21:05 +0000 (09:21 -0800)
committerHarald Hoyer <harald@redhat.com>
Thu, 5 Jan 2012 10:02:04 +0000 (11:02 +0100)
pushd and popd are not available in the shell used by dracut.

modules.d/90dmsquash-live/apply-live-updates.sh

index 8dce5d45806ba6c5ff18729300d575486bda1b3a..f840d1a28cad832d2f45cd0bd6e8704fe5304ff7 100755 (executable)
@@ -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