dracut/0036-99base-init-removed-cdrom-polling-reset-code.patch

30 lines
937 B
Diff
Raw Normal View History

2011-10-19 13:30:00 +00:00
From 86880b8ff70993d9a2357892b4ad5f8345b5f798 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Fri, 2 Sep 2011 09:01:05 +0200
Subject: [PATCH] 99base/init: removed cdrom polling reset code
This is done globally now.
---
modules.d/99base/init | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/modules.d/99base/init b/modules.d/99base/init
index 4cbe342..fe7694a 100755
--- a/modules.d/99base/init
+++ b/modules.d/99base/init
@@ -281,14 +281,6 @@ unset queuetriggered
unset main_loop
unset RDRETRY
-# reset cdrom polling
-for cdrom in /sys/block/sr*; do
- [ -e "$cdrom" ] || continue
- if [ -e "$cdrom"/events_poll_msecs ]; then
- echo -1 > "$cdrom"/events_poll_msecs
- fi
-done
-
# pre-mount happens before we try to mount the root filesystem,
# and happens once.
getarg 'rd.break=pre-mount' 'rdbreak=pre-mount' && emergency_shell -n pre-mount "Break pre-mount"