[Lunar-commits] r17933 - lunar-iso/trunk/initrd/template/sbin

Auke Kok sofar at lunar-linux.org
Thu Jan 5 16:04:25 UTC 2006


Author: sofar
Date: 2006-01-05 16:04:23 +0000 (Thu, 05 Jan 2006)
New Revision: 17933

Modified:
   lunar-iso/trunk/initrd/template/sbin/init
Log:
add srX sgX dvd cdrom cdroms/cdromX as possible root device - scan more root devices to discover lunar iso cd.


Modified: lunar-iso/trunk/initrd/template/sbin/init
===================================================================
--- lunar-iso/trunk/initrd/template/sbin/init	2006-01-05 15:54:07 UTC (rev 17932)
+++ lunar-iso/trunk/initrd/template/sbin/init	2006-01-05 16:04:23 UTC (rev 17933)
@@ -101,7 +101,7 @@
 scan_cdroms()
 {
     if [ -z "$LUNAR_CD" ]; then
-        DEVICES=$(for DEV in {hd,sd,ub}{a,b,c,d,e,f,g,h}{,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15} ; do if [ -e /dev/$DEV ]; then echo /dev/$DEV ; fi ; done)
+        DEVICES=$(for DEV in cdrom dvd {{hd,sd,ub}{a,b,c,d,e,f,g,h},s{r,g},cdroms/cdrom}{,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15} ; do if [ -e /dev/$DEV ]; then echo /dev/$DEV ; fi ; done)
 	for DEVICE in $DEVICES; do
             mount -n -r $DEVICE /mnt -t iso9660 2>/dev/null
             if [ -e "/mnt/.lunar-cd" ]; then



More information about the Lunar-commits mailing list