qubes-installer-qubes-os/anaconda/dracut/repo-genrules.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

24 lines
757 B
Bash
Executable File

#!/bin/sh
# generate udev rules for handling anaconda-specific root devices
# (just the disk-based ones - the network ones are done by netroot)
. /lib/anaconda-lib.sh
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
echo 'ENV{ID_CDROM}=="1",' \
'RUN+="/sbin/initqueue --settled --onetime' \
'/sbin/anaconda-diskroot $env{DEVNAME}"' >> $rulesfile
# HACK: anaconda demands that CDROMs be mounted at /mnt/install/source
ln -s repo /run/install/source
;;
esac