Tweak the sgimips section for rootfs mounting to use squashfs instead of ext2.
authorJoshua Kinard <kumba@gentoo.org>
Wed, 5 Jul 2006 15:06:02 +0000 (15:06 +0000)
committerJoshua Kinard <kumba@gentoo.org>
Wed, 5 Jul 2006 15:06:02 +0000 (15:06 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@416 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/linuxrc

index c51d2b544188c7c662b109dd2c85881ca4ed9d28..571d82993437d949fdbc157cfb5faed10ce66cab 100644 (file)
@@ -525,15 +525,15 @@ then
 
        elif [ "${LOOPTYPE}" = 'sgimips' ]
        then
-               # getdvhoff finds the starting offset of the ext2 partition
-               # on the cdrom and returns this offset for losetup
+               # getdvhoff finds the starting offset (in bytes) of the squashfs
+               # partition on the cdrom and returns this offset for losetup
                #
-               # Currently supported SGI Systems all use SCSI CD-ROMs, so
-               # so we know that the CD-ROM is always /dev/sr0
+               # All currently supported SGI Systems use SCSI CD-ROMs, so
+               # so we know that the CD-ROM is usually going to be /dev/sr0.
                #
                # We use the value given to losetup to set /dev/loop0 to point
                # to the liveCD root partition, and then mount /dev/loop0 as
-               # the liveCD root
+               # the LiveCD rootfs
                good_msg 'Locating the SGI LiveCD Root Partition'
                echo ' ' | \
                        losetup -o $(/bin/getdvhoff ${NEW_ROOT}${REAL_ROOT} 0) \
@@ -542,7 +542,7 @@ then
                test_success 'losetup /dev/sr0 /dev/loop0'
 
                good_msg 'Mounting the Root Partition'
-               mount -t ext2 -o ro ${NEW_ROOT}${CDROOT_DEV} ${NEW_ROOT}/mnt/livecd
+               mount -t squashfs -o ro ${NEW_ROOT}${CDROOT_DEV} ${NEW_ROOT}/mnt/livecd
                test_success 'mount /dev/loop0 /'
                FS_LOCATION='mnt/livecd'
        fi