mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-15 20:50:30 +03:00
8cf59e97c4
Otherwise, systemd-sysv-generator will generate a service equivalent
that breaks the boot: under systemd this is covered by
zfs-mount-generator
We already do this for zfs-import.service, and other init scripts are
suppressed automatically by the "actual" .service files
Fixes: commit f04b976200
("Add init script
to load keys")
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #14010
Closes #14019
26 lines
634 B
Makefile
26 lines
634 B
Makefile
include $(top_srcdir)/config/Substfiles.am
|
|
|
|
systemdpreset_DATA = \
|
|
50-zfs.preset
|
|
|
|
systemdunit_DATA = \
|
|
zfs-zed.service \
|
|
zfs-import-cache.service \
|
|
zfs-import-scan.service \
|
|
zfs-mount.service \
|
|
zfs-share.service \
|
|
zfs-volume-wait.service \
|
|
zfs-import.target \
|
|
zfs-volumes.target \
|
|
zfs.target \
|
|
zfs-scrub-monthly@.timer \
|
|
zfs-scrub-weekly@.timer \
|
|
zfs-scrub@.service
|
|
|
|
SUBSTFILES += $(systemdpreset_DATA) $(systemdunit_DATA)
|
|
|
|
install-data-hook:
|
|
$(MKDIR_P) "$(DESTDIR)$(systemdunitdir)"
|
|
ln -sf /dev/null "$(DESTDIR)$(systemdunitdir)/zfs-import.service"
|
|
ln -sf /dev/null "$(DESTDIR)$(systemdunitdir)/zfs-load-key.service"
|