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

Submitted by Drew Moseley on July 31, 2014, 12:49 a.m.

Details

Message ID 1406767772-7963-3-git-send-email-drew_moseley@mentor.com
State Accepted
Commit e8ee8b765183fb3ebe5e94df6375c2fad111dcc7
Headers show

Commit Message

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 hide | download patch | download mbox

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
 	    ;;