Skip to content

Commit

Permalink
dracut: minor cleanup
Browse files Browse the repository at this point in the history
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 fdee9c2)
  • Loading branch information
wgwoods committed Jul 22, 2015
1 parent f200ac3 commit b4c6368
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dracut/repo-genrules.sh
Expand Up @@ -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
;;
Expand Down

0 comments on commit b4c6368

Please sign in to comment.