anaconda/anaconda-40.22.3.13/dracut/repo-genrules.sh

27 lines
772 B
Bash
Raw Normal View History

2024-11-14 21:39:56 -08:00
#!/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
when_any_cdrom_appears \
anaconda-diskroot "\$env{DEVNAME}"
# HACK: anaconda demands that CDROMs be mounted at /mnt/install/source
ln -s repo /run/install/source
;;
anaconda-hmc)
when_any_hmcdrv_appears \
anaconda-hmcroot "\$env{DEVNAME}"
;;
esac