LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-27-2008, 12:04 AM   #1
zcrxsir88
Member
 
Registered: Oct 2004
Location: Cardiff-by-the-Sea, CA
Distribution: Fedora X & RHEL X.X
Posts: 51

Rep: Reputation: 18
SquashFS Problems


All,

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-fedora-8-base-desktop.ks
livecd-fedora-8-kde.ks

livecd-creator \
--config=/home/livecd-fedora-8-kde.ks \
--fslabel=Fedora-8-LiveCD-KDE

# 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
GPL
isolinux
LiveOS
README

# 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 http://livna-dl.reloumirrors.net/\
fedora/8/i386/livna-release-8-1.noarch.rpm --root /home/livecd-root/

rpm -ihv http://ayo.freshrpms.net/fedora/linux/8/i386/\
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" .
 
Old 02-27-2008, 04:48 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Code:
# 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:
Code:
--fslabel=Fedora-8-LiveCD-KDE
Also, if you want a really slim version, I would start with the
livecd-fedora-minimal.ks
 
Old 02-27-2008, 08:08 AM   #3
zcrxsir88
Member
 
Registered: Oct 2004
Location: Cardiff-by-the-Sea, CA
Distribution: Fedora X & RHEL X.X
Posts: 51

Original Poster
Rep: Reputation: 18
Where can I get that KS file?

Thanks!
 
Old 02-27-2008, 09:10 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
It's in /usr/share/live-cd
If not, use the locate command to find it.
 
Old 02-27-2008, 09:48 AM   #5
zcrxsir88
Member
 
Registered: Oct 2004
Location: Cardiff-by-the-Sea, CA
Distribution: Fedora X & RHEL X.X
Posts: 51

Original Poster
Rep: Reputation: 18
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!
 
Old 02-27-2008, 11:36 AM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
When you use livecd-creator, the --fslabel=something-here
needs to match what you use when using the mkisofs -V something-here
 
Old 02-27-2008, 02:10 PM   #7
zcrxsir88
Member
 
Registered: Oct 2004
Location: Cardiff-by-the-Sea, CA
Distribution: Fedora X & RHEL X.X
Posts: 51

Original Poster
Rep: Reputation: 18
Yeah,

Did that, still keeps failing for some reason.

Thanks
 
Old 02-27-2008, 04:23 PM   #8
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Does the new cd boot before you make any changes?
 
Old 02-27-2008, 07:11 PM   #9
zcrxsir88
Member
 
Registered: Oct 2004
Location: Cardiff-by-the-Sea, CA
Distribution: Fedora X & RHEL X.X
Posts: 51

Original Poster
Rep: Reputation: 18
Yup. Boot's just fine.
 
Old 02-27-2008, 08:30 PM   #10
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Don't know, what kind of changes are you making?
 
Old 02-27-2008, 08:36 PM   #11
zcrxsir88
Member
 
Registered: Oct 2004
Location: Cardiff-by-the-Sea, CA
Distribution: Fedora X & RHEL X.X
Posts: 51

Original Poster
Rep: Reputation: 18
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SQUASHFS error... theherkman Linux - Newbie 4 12-08-2010 08:47 AM
openwrt: jffs2 or squashfs almost000 Linux - Newbie 1 07-11-2007 01:07 PM
Problems installing SquashFS in Fedora 4 banjzooie Fedora 2 02-05-2007 05:59 AM
Unionfs and Squashfs support pengu Linux - Kernel 4 01-07-2007 04:06 PM
squashfs Vookimedlo Linux - Software 0 07-21-2004 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration