I already do this for quite some time and this is roughly the code I
use:
echo live/filesystem.squashfs | cpio -o -H newc | gzip -1 >
$live_initrd
cat $org_initrd $live_initrd > $new_initrd
Sorry I've missed a crucial step:
- Add "live-media=/" to boot arguments.