2013-01-23 17:28:19 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# generate udev rules for fetching kickstarts.
|
|
|
|
|
2014-04-07 12:38:09 +00:00
|
|
|
. /lib/anaconda-lib.sh
|
|
|
|
|
2013-01-23 17:28:19 +00:00
|
|
|
case "${kickstart%%:*}" in
|
|
|
|
http|https|ftp|nfs)
|
|
|
|
# handled by fetch-kickstart-net in the online hook
|
|
|
|
wait_for_kickstart
|
|
|
|
;;
|
2015-03-23 11:36:12 +00:00
|
|
|
cdrom|hd) # cdrom, cdrom:<path>, hd:<dev>:<path>
|
2013-01-23 17:28:19 +00:00
|
|
|
splitsep ":" "$kickstart" kstype ksdev kspath
|
2015-03-23 11:36:12 +00:00
|
|
|
if [ "$kstype" = "cdrom" ] && [ -z "$kspath" ]; then
|
|
|
|
kspath="$ksdev"
|
|
|
|
when_any_cdrom_appears \
|
|
|
|
fetch-kickstart-disk \$env{DEVNAME} "$kspath"
|
2013-01-23 17:28:19 +00:00
|
|
|
else
|
2015-03-23 11:36:12 +00:00
|
|
|
ksdev=$(disk_to_dev_path $ksdev)
|
2013-01-23 17:28:19 +00:00
|
|
|
when_diskdev_appears "$ksdev" \
|
|
|
|
fetch-kickstart-disk \$env{DEVNAME} "$kspath"
|
|
|
|
fi
|
2015-03-23 11:36:12 +00:00
|
|
|
wait_for_kickstart
|
|
|
|
;;
|
|
|
|
bd) # bd:<dev>:<path> - biospart (TODO... if anyone uses this anymore)
|
|
|
|
warn "inst.ks: can't get kickstart - biospart (bd:) isn't supported yet"
|
2013-01-23 17:28:19 +00:00
|
|
|
;;
|
|
|
|
esac
|