Tweak the sgimips section for rootfs mounting to use squashfs instead of ext2.


			
			
				cleanup-cruft
			
			
		
Joshua Kinard 19 years ago
parent 2965f9a4af
commit a57ccf07e7

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

Loading…
Cancel
Save