You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qubes-installer-qubes-os/anaconda/dracut/repo-genrules.sh

24 lines
757 B

#!/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