mirror_zfs/contrib/dracut/90zfs
Savyasachee Jha 44b0380a35 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
2022-02-16 15:23:30 -08:00
..
.gitignore dracut: 90zfs: respect zfs_force=1 on systemd systems 2021-06-10 09:26:37 -07:00
export-zfs.sh.in Pass --enable=all to shellcheck within contrib/ 2021-11-30 10:23:10 -08:00
import-opts-generator.sh.in Pass --enable=all to shellcheck within contrib/ 2021-11-30 10:23:10 -08:00
Makefile.am Add --enable=all to ShellCheck by default 2022-02-07 11:59:09 -08:00
module-setup.sh.in Make better use of dracut functions when building initramfs 2022-02-16 15:23:30 -08:00
mount-zfs.sh.in Use %%/* instead of awk -F/ {print $1} to strip datasets 2021-06-04 14:01:08 -07:00
parse-zfs.sh.in Pass --enable=all to shellcheck within contrib/ 2021-11-30 10:23:10 -08:00
zfs-env-bootfs.service.in libzfs: add keylocation=https://, backed by fetch(3) or libcurl 2021-05-12 21:21:35 -07:00
zfs-generator.sh.in Remove basename(1). Clean up/shorten some coreutils pipelines 2021-11-11 13:27:37 -07:00
zfs-lib.sh.in Pass --enable=all to shellcheck within contrib/ 2021-11-30 10:23:10 -08:00
zfs-load-key.sh.in contrib/initrd: systemd-ask-password --no-tty before argument 2021-12-17 12:44:23 -08:00
zfs-needshutdown.sh.in dracut: use /bin/sh instead of bash as the intepreter 2020-11-28 11:02:08 -08:00
zfs-rollback-bootfs.service.in contrib: dracut: zfs-{rollback,snapshot}-bootfs: don't shell for test 2022-02-11 11:43:07 -08:00
zfs-snapshot-bootfs.service.in contrib: dracut: zfs-{rollback,snapshot}-bootfs: don't shell for test 2022-02-11 11:43:07 -08:00