f73b3741f0
Apply result of "git diff anaconda-18.37.11-1..anaconda-20.25.16-1" and resolve conflicts.
26 lines
853 B
Bash
Executable File
26 lines
853 B
Bash
Executable File
#!/bin/sh
|
|
# generate udev rules for fetching kickstarts.
|
|
|
|
. /lib/anaconda-lib.sh
|
|
|
|
case "${kickstart%%:*}" in
|
|
http|https|ftp|nfs)
|
|
# handled by fetch-kickstart-net in the online hook
|
|
wait_for_kickstart
|
|
;;
|
|
cdrom|hd|bd) # cdrom, cdrom:<dev>:<path>, hd:<dev>:<path>, bd:<dev>:<path>
|
|
splitsep ":" "$kickstart" kstype ksdev kspath
|
|
[ "$kstype" = "cdrom" ] && [ -z "$ksdev" ] && ksdev="/dev/cdrom"
|
|
ksdev=$(disk_to_dev_path $ksdev)
|
|
if [ "$kstype" = "bd" ]; then # TODO FIXME: no biospart support yet
|
|
warn "inst.ks='$kickstart'"
|
|
warn "can't get kickstart: biospart isn't supported yet"
|
|
ksdev=""
|
|
else
|
|
when_diskdev_appears "$ksdev" \
|
|
fetch-kickstart-disk \$env{DEVNAME} "$kspath"
|
|
wait_for_kickstart
|
|
fi
|
|
;;
|
|
esac
|