From b4c6368781f51d14aa92d8308025d199701d6d9c Mon Sep 17 00:00:00 2001 From: Will Woods Date: Wed, 22 Jul 2015 17:29:28 -0400 Subject: [PATCH] dracut: minor cleanup anaconda-lib has the `when_any_cdrom_appears` function for this exact purpose, so use that instead of handcrafting the udev rule. Related: rhbz#1168902 (cherry picked from commit fdee9c29ff58b60f799d93565db8f9a0d6cec45f) --- dracut/repo-genrules.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dracut/repo-genrules.sh b/dracut/repo-genrules.sh index 55abd3216e1..9f1d40eeb7c 100755 --- a/dracut/repo-genrules.sh +++ b/dracut/repo-genrules.sh @@ -14,9 +14,8 @@ case "$root" in ;; 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 + 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 ;;