mirror_zfs/contrib/dracut/90zfs
Savyasachee Jha 5eae5a88b2 Multiple dracut module install script cleanups
- Replaced intances of `dracut_install` with `inst_simple`
- Removed calls to `test -x mark_hostonly` because the function is an
inbuilt dracut function
- Removed redundant installation of `systemd-ask-password` and
`systemd-tty-ask-password-agent` because they are already installed by
the systemd module. There is no need to install them again
- Removed multiple calls to the `mark_hostonly` function because the
`inst_simple` has a command-line switch for it
- Cleaned up the installation of the `zpool.cache`, `vdev_id.conf` and
`hostid` files to make the logic easier to follow
- Cleaned up and simplified the systemd service installation logic by
invoking systemctl instead of creating symlinks manually
- Replaced various hard-coded paths with dracut equivalents to better
conform with expected dracut behaviour
- Removed redundant call to `mkdir` (`inst_simple` creates the parent
directory if it does not exist on the destination initrd)

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:28:18 -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 Multiple dracut module install script cleanups 2022-02-16 15:28:18 -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