dracut icon indicating copy to clipboard operation
dracut copied to clipboard

I want to maintain two different types of initramfs on the same system

Open ericcurtin opened this issue 2 years ago • 3 comments

Describe the enhancement

I would like to build two different types of initramfs's on a Linux distribution. One "fat" version built simply via "dracut -f" and another slimmed down version, that removes unused modules for performance and that also removes GPLv3 content. Preferably I would not have to duplicate dracut config files to achieve this.

I was able to partially achieve this goal via:

dracut -v -m "systemd kernel-modules udev-rules dracut-systemd pre-initramfs rootfs-block" -f --strip $initramfs -M -o nss-softokn

Then using some rpm tooling, I identified that there was still some software with GPLv3 traces in the initramfs:

https://github.com/ericcurtin/initoverlayfs/blob/main/gplv3-files-to-rm.txt

I would like to specifically remove these files and all traces of these packages.

Should I look to contribute an option like:

--omit-files [LIST] Omit a space-separated list of files and directories from initramfs.

?

Or are there other options I should consider?

ericcurtin avatar Sep 06 '23 11:09 ericcurtin