}
extract_dietlibc_bincache() {
- print_info 1 "dietlibc: >> Extracting cache..."
cd "${TEMP}"
rm -rf "${TEMP}/diet" > /dev/null
tar -jxpf "${DIETLIBC_BINCACHE}" || gen_die "Could not extract dietlibc bincache!"
cd "${TEMP}"
rm -rf "${BUSYBOX_DIR}" > /dev/null
- else
- print_info 1 "busybox: Found cache at ${BUSYBOX_BINCACHE}"
fi
}
cd "${TEMP}"
rm -rf "${MODULE_INIT_TOOLS_DIR}" > /dev/null
- else
- print_info 1 "modutils: Found cache at ${MODUTILS_BINCACHE}"
fi
}
cd "${TEMP}"
rm -rf "${MODULE_INIT_TOOLS_DIR}" > /dev/null
- else
- print_info 1 "module-init-tools: Found cache at ${MODULE_INIT_TOOLS_BINCACHE}"
fi
}
cd "${TEMP}"
# rm -rf "${DEVFSD_DIR}" > /dev/null
- else
- print_info 1 "devfsd: Found cache at ${DEVFSD_BINCACHE} and ${DEVFSD_CONF_BINCACHE}..."
fi
}
cd "${TEMP}"
rm -rf "${DIETLIBC_DIR}" > /dev/null
rm -rf "${TEMP}/diet" > /dev/null
- else
- print_info 1 "dietlibc: Found cache at ${DIETLIBC_BINCACHE}"
fi
}
then
if [ -x /sbin/splash ]
then
- [ -z "${BOOTSPLASH_THEME}" ] && source /etc/conf.d/bootsplash.conf
+ [ -z "${BOOTSPLASH_THEME}" ] && [ -e /etc/conf.d/bootplash.conf ] && source /etc/conf.d/bootsplash.conf
+ [ -z "${BOOTSPLASH_THEME}" ] && [ -e /etc/conf.d/bootplash ] && source /etc/conf.d/bootsplash
[ -z "${BOOTSPLASH_THEME}" ] && BOOTSPLASH_THEME=default
print_info 1 " >> Installing bootsplash [ using the ${BOOTSPLASH_THEME} theme ]..."
for bootRes in '800x600' '1024x768' '1280x1024' '1600x1200'
KMINOR=`echo $KV | cut -f2 -d.`
KVER="${KMAJOR}.${KMINOR}"
MISCOPTS="cdcache idebug detect"
-HWOPTS="scsi firewire ataraid pcmcia usb keymap"
+HWOPTS="scsi firewire ataraid pcmcia usb keymap cache"
MY_HWOPTS="usb firewire"
QUIET=1
ROOT_LINKS="bin sbin lib lib64 boot usr opt"
fi
fi
+ if [ "${LOOPTYPE}" != "noloop" ]
+ 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}
+ 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
+ else
+ LOOPEXT="../"
+ fi
+ fi
+ fi
+
if [ "${LOOPTYPE}" = "normal" ]
then
- check_loop
-
# bind-mount /dev/ so that loop devices can be found
mount -o bind /newroot/dev /dev
echo -e "${GOOD}>>${NORMAL}${BOLD} Mounting loop filesystem...${NORMAL}"
- mount -t ext2 -o loop,ro /newroot/mnt/cdrom/${LOOP} /newroot/mnt/livecd
+ mount -t ext2 -o loop,ro /newroot/mnt/cdrom/${LOOPEXT}${LOOP} /newroot/mnt/livecd
if [ "$?" != "0" ]
then
echo "FAILED TO MOUNT LOOP FILESYSTEM, barfing out to shell"
umount /dev
elif [ "${LOOPTYPE}" = "squashfs" ]
then
- check_loop
mount -o bind /newroot/dev /dev
echo -e "${GOOD}>>${NORMAL}${BOLD} Mounting squashfs filesystem...${NORMAL}"
- mount -t squashfs -o loop,ro /newroot/mnt/cdrom/${LOOP} /newroot/mnt/livecd
+ mount -t squashfs -o loop,ro /newroot/mnt/cdrom/${LOOPEXT}${LOOP} /newroot/mnt/livecd
if [ "$?" != "0" ]
then
echo "FAILED TO MOUNT LOOP FILESYSTEM, barfing out to shell"
umount /dev
elif [ "${LOOPTYPE}" = "gcloop" ]
then
- check_loop
echo -e "${GOOD}>>${NORMAL}${BOLD} Mounting gcloop filesystem...${NORMAL}"
mount -o bind /newroot/dev /dev
- echo " " | losetup -E 19 -e ucl-0 -p0 /newroot/dev/loop0 /newroot/mnt/cdrom/${LOOP}
+ echo " " | losetup -E 19 -e ucl-0 -p0 /newroot/dev/loop0 /newroot/mnt/cdrom/${LOOPEXT}${LOOP}
if [ "$?" != "0" ]
then
echo "FAILED TO losetup THE LOOP DEVICE"
umount /dev
elif [ "${LOOPTYPE}" = "zisofs" ]
then
- check_loop
- FS_LOCATION="mnt/cdrom/${LOOP}"
+ FS_LOCATION="mnt/cdrom/${LOOPEXT}${LOOP}"
elif [ "${LOOPTYPE}" = "noloop" ]
then
FS_LOCATION="mnt/cdrom"