zfs/contrib/dracut/90zfs
Savyasachee Jha 115e059818 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-05-25 11:09:23 -07:00
..
.gitignore dracut: 90zfs: respect zfs_force=1 on systemd systems 2021-06-10 10:50:16 -07:00
Makefile.am dracut: 90zfs: respect zfs_force=1 on systemd systems 2021-06-10 10:50:16 -07:00
export-zfs.sh.in contrib/dracut: zfs-lib: export_all: replace with inline zpool export -a 2022-05-06 12:01:48 -07:00
import-opts-generator.sh.in dracut: 90zfs: respect zfs_force=1 on systemd systems 2021-06-10 10:50:16 -07:00
module-setup.sh.in Multiple dracut module install script cleanups 2022-05-25 11:09:23 -07:00
mount-zfs.sh.in contrib: dracut: don't require essentials to be under the same encroot 2022-05-06 12:01:48 -07:00
parse-zfs.sh.in contrib; dracut: centralise root= parsing, actually support root=s 2022-05-06 12:01:48 -07:00
zfs-env-bootfs.service.in contrib; dracut: flatten zfs-load-key, simplify zfs-env-bootfs 2022-05-06 12:01:48 -07:00
zfs-generator.sh.in contrib; dracut: centralise root= parsing, actually support root=s 2022-05-06 12:01:48 -07:00
zfs-lib.sh.in contrib: dracut: remove getargbool polyfill 2022-05-06 12:01:48 -07:00
zfs-load-key.sh.in contrib: dracut: don't require essentials to be under the same encroot 2022-05-06 12:01:48 -07:00
zfs-needshutdown.sh.in contrib: dracut: zfs-needshutdown: don't list 2022-05-06 12:01:48 -07:00
zfs-rollback-bootfs.service.in contrib: dracut: zfs-{rollback,snapshot}-bootfs: order after key loading 2022-05-06 12:01:48 -07:00
zfs-snapshot-bootfs.service.in contrib: dracut: zfs-{rollback,snapshot}-bootfs: order after key loading 2022-05-06 12:01:48 -07:00