dracut/installer: remove cdrom waiting loop that reset some drives.

This commit is contained in:
Arne Fitzenreiter
2011-01-12 14:58:08 +01:00
parent 0972c65075
commit b3cd6e3382
2 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
diff -Naur dracut-006.org/modules.d/99base/init dracut-006/modules.d/99base/init
--- dracut-006.org/modules.d/99base/init 2010-06-17 10:46:29.000000000 +0200
+++ dracut-006/modules.d/99base/init 2011-01-12 11:40:41.713190125 +0100
@@ -190,17 +190,6 @@
# no more udev jobs and queues empty.
sleep 0.5
- # dirty hack for some cdrom drives,
- # which report no medium for quiet
- # some time.
- for cdrom in /sys/block/sr*; do
- [ -e "$cdrom" ] || continue
- # skip, if cdrom medium was already found
- strstr "$(udevadm info --query=env --path=${cdrom##/sys})" \
- ID_CDROM_MEDIA && continue
- echo change > "$cdrom/uevent"
- done
-
i=$(($i+1))
[ $i -gt $RDRETRY ] \
&& { flock -s 9 ; emergency_shell "No root device found"; } 9>/.console_lock