[rhel7/master] unpack product.img to /updates (#911873)

Brian C. Lane bcl at redhat.com
Mon Feb 18 21:32:05 UTC 2013


From: "Brian C. Lane" <bcl at redhat.com>

product.img should place its files under /run/install/product

This maintains consistency between updates.img and product.img and
supports correct operation whether or not tmpfs is used for /tmp
---
 dracut/anaconda-lib.sh     | 2 +-
 dracut/anaconda-netroot.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dracut/anaconda-lib.sh b/dracut/anaconda-lib.sh
index 19573ed..30bf51e 100755
--- a/dracut/anaconda-lib.sh
+++ b/dracut/anaconda-lib.sh
@@ -95,7 +95,7 @@ anaconda_auto_updates() {
         unpack_updates_img $dir/updates.img /updates
     fi
     if [ -e $dir/product.img ]; then
-        unpack_updates_img $dir/product.img /updates/tmp/product
+        unpack_updates_img $dir/product.img /updates
     fi
 }
 
diff --git a/dracut/anaconda-netroot.sh b/dracut/anaconda-netroot.sh
index 0425661..6217953 100755
--- a/dracut/anaconda-netroot.sh
+++ b/dracut/anaconda-netroot.sh
@@ -58,7 +58,7 @@ case $repo in
             updates=$(fetch_url $repo/images/updates.img)
             [ -n "$updates" ] && unpack_updates_img $updates /updates
             product=$(fetch_url $repo/images/product.img)
-            [ -n "$product" ] && unpack_updates_img $product /updates/tmp/product
+            [ -n "$product" ] && unpack_updates_img $product /updates
             /sbin/dmsquash-live-root $runtime
         fi
     ;;
-- 
1.8.1



More information about the anaconda-patches mailing list