HomeFreeBSD

Make better use of dracut functions when building initramfs

Description

Make better use of dracut functions when building initramfs

Setting up the module involves multiple redundant calls to a bunch of
dracut functions wheich can be combined into one. Additionally, the mass
of code required to load libgcc_s.so* can be replaced with one dracut
function. This has the additional effect of removing errors involving
the non-installation of libgcc_s.so* which are seen on debian bullseye
when using version 2.1.2-1~bpo11+1 from the backports repository.

The systemd binaries are separated out into their own dracut_install
function call so they do not get pulled in when dracut does not load the
systemd module.

Reviewed-by: Ahelenia ZiemiaƄska <nabijaczleweli@nabijaczleweli.xyz>
Reviewed-by: Andrew J. Hesford <ajh@sideband.org>
Signed-off-by: Savyasachee Jha <hi@savyasacheejha.com>
Closes #13010

Details

Provenance
Savyasachee Jha <genghizkhan91@hawkradius.com>Authored on Jan 25 2022, 3:22 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 25 2022, 6:09 PM
Parents
rG05147319b082: Fix compiler warnings about zero-length arrays in inline bitops
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG0671f7270695: Make better use of dracut functions when building initramfs (authored by Savyasachee Jha <genghizkhan91@hawkradius.com>).May 25 2022, 6:09 PM