D Teed wrote:
Personally, I start with a ready-made image, uncompress the file, mount it with something like: mount -o loop initrd /mnt/initrd Then I copy everything into a new empty directory somewhere. (You can umount the above now.) I make the changes I want in the directory, then hop up one level and use genromfs to make a new initrd based on that directories contents.
Well uncompressing it just yields a cpio archive, I can't really mount this. But I can use cpio to "untar" it and edit the resulting files. But I don't know how to make a new cpio archive. Is that what genromfs does?