I'm trying to take the Gentoo minimal install disc, extract the contents from the ISO, add some files to it and then make it back into a bootable image. The idea being that when you ls after booting into it, you'll see some extra stuff that isn't normally there.
This kind of stuff is outside my usual work, so I'm not sure if there's an obvious step I'm missing.
So far, I've done the following:
- downloaded the ISO and copied the data to another directory
- ran
unsquashfs on image.squashfs (which is in the root of the disc image); this resulted in the squashed filesystem being extracted to /root/squashfs-root/
- added a couple of text files to /root/squashfs-root/
- ran
mksquashfs on /root/squashfs-root/ to make a new image.squashfs
- copied the new image.squashfs back into the directory where the ISO was extracted to, and then ran
mkisofs to make a new image
I can boot into the new image fine, but eventually I get this:
Quote:
!! Invalid loop location: /image.squashfs
!! Please export LOOP with a valid location, or reboot and pass a proper loop=...
!! kernel command line!
|
I imagine the kernel on this ISO is already configured for squashfs, because I can boot the original image just fine. All I've done is replaced the old image.squashfs for a new one. Maybe there's a checksum somewhere? Anyone have any ideas why the new image.squashfs is not considered valid?