2014-04-07 12:38:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# parse-anaconda-dd.sh: handle driver update disk settings
|
|
|
|
|
|
|
|
# no need to do this twice
|
2015-03-23 11:36:12 +00:00
|
|
|
[ -f /tmp/dd_net.done ] && return
|
2014-04-07 12:38:09 +00:00
|
|
|
|
|
|
|
command -v getarg >/dev/null || . /lib/dracut-lib.sh
|
|
|
|
|
|
|
|
# inst.dd: May provide a "URI" for the driver rpm (possibly more than one)
|
|
|
|
dd_args="$(getargs dd= inst.dd=)"
|
|
|
|
for dd in $dd_args; do
|
|
|
|
case "${dd%%:*}" in
|
|
|
|
http|https|ftp|nfs|nfs4)
|
|
|
|
set_neednet
|
|
|
|
break
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|