]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make better use of dracut functions when building initramfs
authorSavyasachee Jha <genghizkhan91@hawkradius.com>
Tue, 25 Jan 2022 03:22:48 +0000 (03:22 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 16 Feb 2022 23:23:30 +0000 (15:23 -0800)
commit44b0380a3550562f34e06d109f20eb2174848068
tree4d59f6f230d03b338924130cce2800cf4223b03e
parent72f3c8b13019b8882f4536411e42734fd3b4a4d7
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
contrib/dracut/90zfs/module-setup.sh.in