Hey there.
I had to change a couple of files that lied within rootfs.gz. For this purpose, I unpacked rootfs.gz to a folder, which simply gave me the file ROOTFS(.cpio). Then, I unpacked ROOTFS, and finally was greeted with what I wanted ( files and folder structure. etc, bin folders and so on )
After I made the changes I needed, I tried to repack the whole thing.
Now this is where the problems begin.
First, I created a text file containing all the files that were needed with this command:
find . -printf "%p\n" -depth > result.txt
Then, I ran this command to pack my stuff:
cpio -o -H newc < result.txt | gzip -9 > ROOTFS.gz
Then, I put my new ROOTFS.gz file ( which suprisingly was bigger than the original. Fairly bigger ) in place of the old one, and created the .iso file. (I am using livecd)
Then I ran the beast, and unsuprisingly the kernel gave me this cheerful message:
Kernel panic: no init found. Try passing init= option to kernel
How can I fix that? I haven't modified anything but rootfs. I did recreate .iso file before (without modifying rootfs) and everything worked, so it has to be related to something being wrong with my rootfs generation.
What could it be, though? :/