-   Linux - General (
-   -   SquashFS Problems (

zcrxsir88 02-27-2008 12:04 AM

SquashFS Problems

I'm trying to modify a ReSpin of Fedora 8 I created. I'm trying to make a uber slimmed down version. Long story short. I used the guide below to mount the ISO and Squash File system, but when I put everything back together it doesn't boot. It appears that it doesnt find the kernel. Any help would be greatly appreciated.

# I copy these files to /home and make adjustments there so the originals
don't get hosed.

livecd-creator \
--config=/home/livecd-fedora-8-kde.ks \

# Mount the livecd iso so we can make some changes
mkdir /home/iso
mount -t iso9660 -o loop /home/Fedora-8-LiveCD-KDE.iso /home/iso

# Check /home/iso for these files and folders

# You need to load the squashfs module

(echo '#!/bin/sh'; echo 'modprobe squashfs') \
> /etc/sysconfig/modules/squashfs.modules
chmod +x /etc/sysconfig/modules/squashfs.modules

# You can enable the squashfs module without rebooting with this command:
modprobe squashfs

# Install squashfs-tools
yum install squashfs-tools

# The contents of the iso root filesystem is located in the file squashfs.img
# Unpack squashfs.img to a folder called squashfs-root
unsquashfs /home/iso/LiveOS/squashfs.img

# Mount the /home/squashfs-root/LiveOS/ext3fs.img to a folder with the command:
mkdir /home/livecd-root
mount -o loop,rw /home/squashfs-root/LiveOS/ext3fs.img /home/livecd-root

# Make some changes, For example:
# Adding yum repos to the livecd environment
rpm -ihv\
fedora/8/i386/livna-release-8-1.noarch.rpm --root /home/livecd-root/

rpm -ihv\
RPMS.freshrpms/freshrpms-release-1.1-1.fc.noarch.rpm --root /home/livecd-root/

# Make a list of installed packages so you have a better idea
# of what needs to be installed or removed
rpm -qa --root /home/livecd-root/ | sort >list.txt

# Add or remove packages with the yum package manager
yum install gimp --installroot=/home/livecd-root
yum remove ktorrent --installroot=/home/livecd-root
yum clean all --installroot=/home/livecd-root
updatedb -U /home/livecd-root

# Copy your desktop settings to the livecd environment
rm -rf /home/livecd-root/etc/skel
mkdir /home/livecd-root/etc/skel
rsync -av --exclude='.thunderbird' /home/fred/ /home/livecd-root/etc/skel
chown -R root:root /home/livecd-root/etc/skel/\.

# Unmount the ext3fs.img and make a new squashfs.img
umount /home/livecd-root
mksquashfs squashfs-root squashfs.img

# Create a folder called build for making the new iso image
mkdir /home/build
rsync -av --exclude='squashfs.img' /home/iso/ /home/build
mv /home/squashfs.img /home/build/LiveOS
umount /home/iso

# When making a new iso image the cd volume label
# needs to match the isolinux.cfg entry
# ( root=CDLABEL=Fedora-8-LiveCD-KDE )

cd /home/build
mkisofs -R -l -L -D -b isolinux/isolinux.bin -c isolinux/boot.catalog -o /home/Modified-Fedora-8-LiveCD-KDE.iso -no-emul-boot -boot-load-size 4 -boot-info-table -V "Fedora-8-LiveCD-KDE" .

homey 02-27-2008 04:48 AM


# When making a new iso image the cd volume label
# needs to match the isolinux.cfg entry
# ( root=CDLABEL=Fedora-8-LiveCD-KDE )

This part is important and comes from the original livecd-creator command:

Also, if you want a really slim version, I would start with the

zcrxsir88 02-27-2008 08:08 AM

Where can I get that KS file?


homey 02-27-2008 09:10 AM

It's in /usr/share/live-cd
If not, use the locate command to find it.

zcrxsir88 02-27-2008 09:48 AM

Thanks. Dont know how I missed that one.

About the label command, do I just add that to the command below?

mkisofs -R -l -L -D -b isolinux/isolinux.bin -c isolinux/boot.catalog -o /home/Modified-Fedora-8-LiveCD-KDE.iso -no-emul-boot -boot-load-size 4 -boot-info-table -V "Fedora-8-LiveCD-KDE" .

Sorry, kind of confused.

Thanks in advance!

homey 02-27-2008 11:36 AM

When you use livecd-creator, the --fslabel=something-here
needs to match what you use when using the mkisofs -V something-here

zcrxsir88 02-27-2008 02:10 PM


Did that, still keeps failing for some reason.


homey 02-27-2008 04:23 PM

Does the new cd boot before you make any changes?

zcrxsir88 02-27-2008 07:11 PM

Yup. Boot's just fine.

homey 02-27-2008 08:30 PM

Don't know, what kind of changes are you making?

zcrxsir88 02-27-2008 08:36 PM

I'm building another ISO with the Fedora_minimal kickstart file and will try to do the process again with the squashfs, well see if it works this time.

All times are GMT -5. The time now is 09:11 AM.