From 66e8e81e986a382206cf533202729ee2c033815d Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Tue, 12 Sep 2006 21:09:01 +0000 Subject: [PATCH] This is ugly. I mean, really ugly. However, it is the only way to support all of the insane ways that people are trying to boot release media. I really wish we didn't have to support this junk, but a regression really shouldn't happen with our releases. Anyway, hopefully I can come up with a better solution to this in the future. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@438 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- generic/initrd.scripts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/generic/initrd.scripts b/generic/initrd.scripts index caeeb08..9dfbdb2 100644 --- a/generic/initrd.scripts +++ b/generic/initrd.scripts @@ -72,7 +72,8 @@ findcdmount() { if [ -b "${x}" ] then good_msg "Attempting to mount media:- ${x}" - mount -r -t iso9660,vfat ${x} ${NEW_ROOT}/mnt/cdrom > /dev/null 2>&1 + mount -r -t iso9660 ${x} ${NEW_ROOT}/mnt/cdrom \ + > /dev/null 2>&1 if [ "$?" = '0' ] then # Check for a LiveCD @@ -84,6 +85,18 @@ findcdmount() { umount ${NEW_ROOT}/mnt/cdrom fi fi + 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/${SUBDIR}/livecd ] + then + REAL_ROOT="${x}" + break + else + umount ${NEW_ROOT}/mnt/cdrom + fi fi done if [ "${REAL_ROOT}" != '' ] -- 2.26.2