[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using initrd as livefs_root



Hi Mert,

    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.


Lukas figured it out, you have to explicitly add the live folder to the cpio archive:

echo live$'\n'live/filesystem.squashfs | cpio -o -H newc | gzip --fast > filesystem.cpio.gz
cat live/initrd.img filesystem.cpio.gz > initrd_with_fs.img

Works like a charm, with "live-media=/" added to boot arguments. Thanks for your help!

Cheers,
Daniel

Reply to: