Add in image.squashfs as a squashfs loop, since it is now the default in catalyst...
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 24 May 2006 22:11:48 +0000 (22:11 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 24 May 2006 22:11:48 +0000 (22:11 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@391 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/initrd.scripts
generic/linuxrc

index bc83c69679dee69f767a4e8ee2db21240468c507..8a68e092e1859e372979b25121c22476f6963f8b 100644 (file)
@@ -99,6 +99,9 @@ cache_cd_contents() {
                check_loop
                if [ "${DO_cache}" ]
                then
+                       # TODO: Check the size of the image versus the size of our tmpfs
+                       # along with the amount of available RAM and increase tmpfs size
+                       # if necessary.
                        good_msg "Copying loop file for caching..."
                        cp -a ${NEW_ROOT}/mnt/cdrom/${LOOP} ${NEW_ROOT}/mnt/${LOOP}
                        if [ $? -ne 0 ]
index 2fc586c0f3e6f48d9585c0c459faf007a52b0b89..80e9e026a71033a49922003c2bd2e01352b863d2 100644 (file)
@@ -424,6 +424,9 @@ then
                        LOOPTYPE='zisofs'
                                elif [ -e "${NEW_ROOT}/mnt/cdrom/livecd.squashfs" ]; then
                        LOOP='/livecd.squashfs'
+                       LOOPTYPE='squashfs'
+                               elif [ -e "${NEW_ROOT}/mnt/cdrom/image.squashfs" ]; then
+                       LOOP='/image.squashfs'
                        LOOPTYPE='squashfs'
                                elif [ -e "${NEW_ROOT}/mnt/cdrom/livecd.gcloop" ]; then
                        LOOP='/livecd.gcloop'
@@ -446,6 +449,8 @@ then
                elif [ "${LOOP}" = '/livecd.squashfs' ]
                then
                        LOOPTYPE='squashfs'
+               elif [ "${LOOP}" = '/image.squashfs' ]
+                       LOOPTYPE='squashfs'
                elif [ "${LOOP}" = '/livecd.gcloop' ]
                then
                        LOOPTYPE='gcloop'