summaryrefslogtreecommitdiffstats
path: root/dracut/repo-genrules.sh
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2012-05-04 15:38:27 -0400
committerWill Woods <wwoods@redhat.com>2012-05-04 15:48:17 -0400
commitfee27791bc71c339bb8c2d939f0bed70af98a6cc (patch)
tree2d18f1c98fc8f1513b6f154241a3a65d208a6c77 /dracut/repo-genrules.sh
parent10bfa26a763264c642074b4240ba3233f2c0dba6 (diff)
downloadanaconda-fee27791bc71c339bb8c2d939f0bed70af98a6cc.tar.gz
anaconda-fee27791bc71c339bb8c2d939f0bed70af98a6cc.tar.xz
anaconda-fee27791bc71c339bb8c2d939f0bed70af98a6cc.zip
Fix anaconda not finding CD for kickstart with 'cdrom' (#817084)
If our methodstr is 'cdrom' then anaconda expects the CD to be mounted at /mnt/install/source. /mnt/install is a symlink to /run/install, so making /run/install/source a symlink to the actual mountpoint makes anaconda able to find the CDROM.
Diffstat (limited to 'dracut/repo-genrules.sh')
-rwxr-xr-xdracut/repo-genrules.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/dracut/repo-genrules.sh b/dracut/repo-genrules.sh
index 6ba8dcd9c..558435c03 100755
--- a/dracut/repo-genrules.sh
+++ b/dracut/repo-genrules.sh
@@ -15,5 +15,7 @@ case "$root" in
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