iso9660 -> auto, and added support for checking SUBDIR for the livecd file. This...
authorChris Gianelloni <wolf31o2@gentoo.org>
Tue, 12 Sep 2006 13:26:19 +0000 (13:26 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Tue, 12 Sep 2006 13:26:19 +0000 (13:26 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@431 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/initrd.scripts

index a7fca775cc0f5ced5ae4f799ab5f2227511de5c2..c864464697fc86deb803ff2b689177e18d91362e 100644 (file)
@@ -1,6 +1,7 @@
 #!/bin/ash
 
 . /etc/initrd.defaults
+
 backup() {
        echo -ne "\033[0G\033[0K"
 }
@@ -70,12 +71,12 @@ findcdmount() {
                        # Check for a block device to mount
                        if [ -b "${x}" ]
                        then
-                               good_msg "Attempting to mount CD:- ${x}"
-                               mount -r -t iso9660 ${x} ${NEW_ROOT}/mnt/cdrom > /dev/null 2>&1
+                               good_msg "Attempting to mount media:- ${x}"
+                               mount -r -t auto ${x} ${NEW_ROOT}/mnt/cdrom > /dev/null 2>&1
                                if [ "$?" = '0' ]
                                then
                                        # Check for a LiveCD
-                                       if [ -e ${NEW_ROOT}/mnt/cdrom/livecd ]
+                                       if [ -e ${NEW_ROOT}/mnt/cdrom/${SUBDIR}/livecd ]
                                        then
                                                REAL_ROOT="${x}"
                                                break
@@ -87,7 +88,7 @@ findcdmount() {
                done
                if [ "${REAL_ROOT}" != '' ]
                then
-                       good_msg "CD medium found on ${x}"
+                       good_msg "Media found on ${x}"
                fi
        fi
 }