Re:Creating a modifiable gzipped disk image
by csdvrx on Sunday December 04, 2022 @05:08AM
(#33852230)
This could be extremely helpful for initrd, say for live distributions: you could then add content to say /lib/modules without having to play the unmkinitramfs and multiple cpio dance like https://askubuntu.com/questions/1435396/load-drivers-to-init...
[ Parent
| on HN ]
Re:Creating a modifiable gzipped disk image
by dezgeg on Sunday December 04, 2022 @05:23AM
(#33852307)
Initramfs archives have a little-known secret: you can simply concatenate them even when they are compressed and the kernel will parse them all. So appending stuff doesn't need unmkinitramfs (which is indeed painful due to needing to keep permissions correct etc.)