I am using Tiny Core Linux for an application where everything should (if possible) fit in the initramfs. It just isn't working, though.
*EDIT* None of the systems described here work:
http://wiki.tinycorelinux.net/wiki:remasteringIt seems that whenever I overlay the .tcz's on top of the existing FS, those packages don't work right. For instance, if I load everything except for firefox, and have firefox installed in the initramfs, then firefox can't find some random DLLs.
I'm doing the following:
Mount the hard drive TC is installed on.
mkdir -p mountpt
losetup /dev/loop1 128M -o 32256
mount /dev/loop1 mountpt
CPIO the data out of the initramfs.
cat ../mountpt/tce/boot/core.gz | gunzip | cpio -id -H newc --preserve-modification-time
Unsquashfs all of the tcz's:
files=`ls mountpt/tce/optional/*.tcz`
mkdir overlay
cd overlay
for file in $files; do
echo $file
unsquashfs -f ../$file
done
(Manually remove entries from the the bootup entries)
overlay all of the tcz's.
cp -a overlay/squashfs-root/* mountcore/
re-cpio the initramfs
cd mountcore
find . | cpio --create --format='newc' > ../image.dd.cpio
ls -l ../image.dd.cpio
echo "image made."
cat ../image.dd.cpio | gzip -6f > ../mountpt/tce/boot/core.gz
unmount everything:
sync
umount mountpt
rm -rf mountpt
losetup -d /dev/loop1
Any idea why everything would be broken... If I do this for all entries, I can't even start X!