My goal is to PXE boot tinycore.gz untouched, followed by a custom gzipped initrd that contains extensions and also my mydata.tgz. I am following this guide to dynamically remaster TC:
http://wiki.tinycorelinux.net/wiki:dynamic_root_filesystem_remastering. My pxelinux.cfg/default file looks like the following:
DEFAULT /boot/vmlinuz
APPEND initrd=/boot/tinycore.gz,/boot/my_initramfs.gz quiet showapps
PROMPT 0
my_initramfs.gz is a cpio gzipped archive that contains the following files:
/opt
/opt/tce (contains copy2fs.flg, mydata.tgz which is a tar gzipped archive of all the files I want to restore, and onboot.lst which contains all the extensions to be loaded)
/opt/tce/optional (all tcz extensions in here)
Now the problem: TC loads all the extensions just fine but skips the mydata archive. It's as though it does not see it. What am I doing wrong here? Where should it be placed or what boot code should I use to force it to load? Because it is being PXE booted, there is really no "physical" partition to load it from, so is this even possible or is my best option to statically remaster tinycore.gz? I'd like to keep it untouched if possible and modify it through my customized initrd. Thanks.