Applied the fixed for ``docache'' to work properly on zisofs.
authorTim Yamin <plasmaroo@gentoo.org>
Sun, 28 Mar 2004 22:23:21 +0000 (22:23 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Sun, 28 Mar 2004 22:23:21 +0000 (22:23 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@101 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/linuxrc

index 2648005abd528faf32f476aec65960c3f6db574d..a6d1e7061b62a0f582ff34da4dcc65bfbff527c3 100644 (file)
@@ -235,13 +235,13 @@ then
            check_loop
            if [ "${DO_cache}" ]
            then
-               echo "${GOOD}>>${NORMAL}${BOLD} Copying loop file for caching...${NORMAL}"
-               cp /newroot/mnt/cdrom/${LOOP} /newroot/mnt/${LOOP}
+               echo -e "${GOOD}>>${NORMAL}${BOLD} Copying loop file for caching...${NORMAL}"
+               cp -a /newroot/mnt/cdrom/${LOOP} /newroot/mnt/${LOOP}
                if [ $? -ne 0 ]
                then
-                       echo "${BAD}!!${NORMAL}${BOLD} Failed to cache the loop file! Lack of space?"
-                       rm /newroot/mnt/livecd.* 2>/dev/null
-                       rm /newroot/mnt/zisofs 2>/dev/null
+                       echo -e "${BAD}!!${NORMAL}${BOLD} Failed to cache the loop file! Lack of space?"
+                       rm -rf /newroot/mnt/livecd.* 2>/dev/null
+                       rm -rf /newroot/mnt/zisofs 2>/dev/null
                else
                        LOOPEXT="../"
                fi
@@ -295,7 +295,7 @@ then
                FS_LOCATION="mnt/cdrom"
        fi
 
-       echo "${GOOD}>>${NORMAL}${BOLD} Filling filesystem...${NORMAL}"
+       echo -e "${GOOD}>>${NORMAL}${BOLD} Filling filesystem...${NORMAL}"
        for x in ${ROOT_LINKS}
        do
                ln -s "${FS_LOCATION}/${x}" "${x}"