qubes-installer-qubes-os/anaconda/dracut/parse-anaconda-dd.sh
Marek Marczykowski-Górecki f73b3741f0 Update anaconda to 20.25.16
Apply result of "git diff anaconda-18.37.11-1..anaconda-20.25.16-1" and
resolve conflicts.
2014-04-08 05:50:31 +02:00

20 lines
459 B
Bash

#!/bin/bash
# parse-anaconda-dd.sh: handle driver update disk settings
# no need to do this twice
[ -f /tmp/dd-net.done ] && return
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
export dd_args