[master 3/3] dracut: minor cleanup
wgwoods
installerbot-noreply at redhat.com
Wed Jul 22 21:47:26 UTC 2015
From: Will Woods <wwoods at redhat.com>
anaconda-lib has the `when_any_cdrom_appears` function for this exact
purpose, so use that instead of handcrafting the udev rule.
---
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 55abd32..9f1d40e 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
;;
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/fdee9c29ff58b60f799d93565db8f9a0d6cec45f
More information about the anaconda-patches
mailing list