2013-01-23 17:28:19 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# generate udev rules for handling anaconda-specific root devices
|
|
|
|
# (just the disk-based ones - the network ones are done by netroot)
|
|
|
|
|
2014-04-07 12:38:09 +00:00
|
|
|
. /lib/anaconda-lib.sh
|
2013-01-23 17:28:19 +00:00
|
|
|
|
|
|
|
case "$root" in
|
|
|
|
anaconda-disk:*)
|
|
|
|
# anaconda-disk:<device>[:<path>]
|
|
|
|
splitsep ":" "$root" f diskdev diskpath
|
|
|
|
diskdev=$(disk_to_dev_path $diskdev)
|
|
|
|
when_diskdev_appears $diskdev \
|
|
|
|
anaconda-diskroot \$env{DEVNAME} $diskpath
|
|
|
|
;;
|
|
|
|
anaconda-auto-cd)
|
|
|
|
# special catch-all rule for CDROMs
|
2016-04-10 04:00:00 +00:00
|
|
|
when_any_cdrom_appears \
|
|
|
|
anaconda-diskroot \$env{DEVNAME}
|
2013-01-23 17:28:19 +00:00
|
|
|
# HACK: anaconda demands that CDROMs be mounted at /mnt/install/source
|
|
|
|
ln -s repo /run/install/source
|
|
|
|
;;
|
|
|
|
esac
|