summaryrefslogtreecommitdiffstats
path: root/dracut/anaconda-netroot.sh
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2012-05-09 15:37:29 -0400
committerWill Woods <wwoods@redhat.com>2012-05-09 19:17:53 -0400
commit89244d0286996fb1082db0544dc8f82fce1cc42b (patch)
tree57f626695c206728dfe0a167cae0392326a5893c /dracut/anaconda-netroot.sh
parent636411b608a4dd9eb3b174a3c66678b6cb52b1e9 (diff)
downloadanaconda-89244d0286996fb1082db0544dc8f82fce1cc42b.tar.gz
anaconda-89244d0286996fb1082db0544dc8f82fce1cc42b.tar.xz
anaconda-89244d0286996fb1082db0544dc8f82fce1cc42b.zip
dracut: automatic updates.img for http/ftp (#809647)
Make anaconda-netroot.sh attempt to fetch updates.img and product.img from $URL/images/{updates,product}.img, like loader used to do. It will emit some "404 not found" error messages for the normal case (i.e. when the images don't exist) but a) the messages should scroll offscreen quickly and b) we don't really have time to fix that right now.
Diffstat (limited to 'dracut/anaconda-netroot.sh')
-rwxr-xr-xdracut/anaconda-netroot.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/dracut/anaconda-netroot.sh b/dracut/anaconda-netroot.sh
index 76d6d7dde..c7d528a39 100755
--- a/dracut/anaconda-netroot.sh
+++ b/dracut/anaconda-netroot.sh
@@ -44,7 +44,14 @@ case $repo in
warn "can't find installer mainimage path in .treeinfo"
stage2="LiveOS/squashfs.img"
fi
- runtime=$(fetch_url $repo/$stage2) && /sbin/dmsquash-live-root $runtime
+ if runtime=$(fetch_url $repo/$stage2); then
+ # NOTE: Should be the same as anaconda_auto_updates()
+ 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
+ /sbin/dmsquash-live-root $runtime
+ fi
;;
*)
warn "unknown network repo URL: $repo"