aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Kinard <kumba@gentoo.org>2006-07-05 15:06:02 +0000
committerJoshua Kinard <kumba@gentoo.org>2006-07-05 15:06:02 +0000
commita57ccf07e76c693b5dbcb4efa15c6593c2dae334 (patch)
tree2bc7dd93ca6701174be07d0f57f84fa2917ae580 /generic
parentFix "Cannot read /proc/mounts" cosmetics. (diff)
downloadgenkernel-a57ccf07e76c693b5dbcb4efa15c6593c2dae334.tar.gz
genkernel-a57ccf07e76c693b5dbcb4efa15c6593c2dae334.tar.bz2
genkernel-a57ccf07e76c693b5dbcb4efa15c6593c2dae334.zip
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
Diffstat (limited to 'generic')
-rw-r--r--generic/linuxrc12
1 files 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