Patchwork [3/3] init-install: Skip CDROM devices during probe

login
register
mail settings
Submitter Drew Moseley
Date July 31, 2014, 12:49 a.m.
Message ID <1406767772-7963-3-git-send-email-drew_moseley@mentor.com>
Download mbox | patch
Permalink /patch/76989/
State Accepted
Commit cade601651c58225a10ece507b65e7ef738a6fa9
Headers show

Comments

Drew Moseley - July 31, 2014, 12:49 a.m.
Signed-off-by: Drew Moseley <drew_moseley@mentor.com>
---
 meta/recipes-core/initrdscripts/files/init-install-efi.sh | 3 +++
 meta/recipes-core/initrdscripts/files/init-install.sh     | 3 +++
 2 files changed, 6 insertions(+)

Patch

diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
index 70a2ee6..89d0750 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
@@ -26,6 +26,9 @@  for device in `ls /sys/block/`; do
 	loop*)
             # skip loop device
 	    ;;
+	sr*)
+            # skip CDROM device
+	    ;;
 	ram*)
             # skip ram device
 	    ;;
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh
index 29587b0..fb537ee 100644
--- a/meta/recipes-core/initrdscripts/files/init-install.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install.sh
@@ -25,6 +25,9 @@  for device in `ls /sys/block/`; do
 	loop*)
             # skip loop device
 	    ;;
+	sr*)
+            # skip CDROM device
+	    ;;
 	ram*)
             # skip ram device
 	    ;;