From a57ccf07e76c693b5dbcb4efa15c6593c2dae334 Mon Sep 17 00:00:00 2001 From: Joshua Kinard Date: Wed, 5 Jul 2006 15:06:02 +0000 Subject: [PATCH] Tweak the sgimips section for rootfs mounting to use squashfs instead of ext2. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@416 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- generic/linuxrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/generic/linuxrc b/generic/linuxrc index c51d2b5..571d829 100644 --- a/generic/linuxrc +++ b/generic/linuxrc @@ -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 -- 2.26.2