anaconda: Do not fail during initramfs start-up due to missing url-lib

This commit is contained in:
M. Vefa Bicakci 2016-04-10 00:00:00 -04:00
parent 763c9b3490
commit dfc0db0a09
No known key found for this signature in database
GPG Key ID: 1DF87CE3B3A5DFAF

View File

@ -2,7 +2,15 @@
# anaconda-ks-sendheaders.sh - set various HTTP headers for kickstarting # anaconda-ks-sendheaders.sh - set various HTTP headers for kickstarting
[ -f /tmp/.ks_sendheaders ] && return [ -f /tmp/.ks_sendheaders ] && return
command -v set_http_header >/dev/null || . /lib/url-lib.sh
if ! command -v set_http_header >/dev/null; then
if ! [ -r /lib/url-lib.sh ]; then
alias set_http_header=:
return
fi
. /lib/url-lib.sh
fi
# inst.ks.sendmac: send MAC addresses in HTTP headers # inst.ks.sendmac: send MAC addresses in HTTP headers
if getargbool 0 kssendmac inst.ks.sendmac; then if getargbool 0 kssendmac inst.ks.sendmac; then