[rhel7-branch 1/1] Do not display curl 404 errors that can be safely ignored
vojtechtrefny
installerbot-noreply at redhat.com
Thu Jun 25 13:50:02 UTC 2015
From: Vojtech Trefny <vtrefny at redhat.com>
Resolves: rhbz#1182776
Signed-off-by: Vojtech Trefny <vtrefny at redhat.com>
---
dracut/anaconda-netroot.sh | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/dracut/anaconda-netroot.sh b/dracut/anaconda-netroot.sh
index f080b1f..a6d95fc 100755
--- a/dracut/anaconda-netroot.sh
+++ b/dracut/anaconda-netroot.sh
@@ -65,17 +65,20 @@ case $repo in
http*|ftp*)
. /lib/url-lib.sh
info "anaconda fetching installer from $repo"
- treeinfo=$(fetch_url $repo/.treeinfo) && \
+ treeinfo=$(fetch_url $repo/.treeinfo 2> /tmp/treeinfo_err) && \
stage2=$(config_get stage2 mainimage < $treeinfo)
+ [ -z "$treeinfo" ] && info $(cat /tmp/treeinfo_err)
if [ -z "$treeinfo" -o -z "$stage2" ]; then
warn "can't find installer mainimage path in .treeinfo"
stage2="LiveOS/squashfs.img"
fi
if runtime=$(fetch_url $repo/$stage2); then
# NOTE: Should be the same as anaconda_auto_updates()
- updates=$(fetch_url $repo/images/updates.img)
+ updates=$(fetch_url $repo/images/updates.img 2> /tmp/updates_err)
+ [ -z "$updates" ] && info $(cat /tmp/updates_err)
[ -n "$updates" ] && unpack_updates_img $updates /updates
- product=$(fetch_url $repo/images/product.img)
+ product=$(fetch_url $repo/images/product.img 2> /tmp/product_err)
+ [ -z "$product" ] && info $(cat /tmp/product_err)
[ -n "$product" ] && unpack_updates_img $product /updates
/sbin/dmsquash-live-root $runtime
fi
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/078f64a5e7076e185b101e2a768484b8a526ab4e
More information about the anaconda-patches
mailing list