-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The initramfs hook scripts depend on Makefile. This way, if the substitution code is changed, they should update. This brings it in line with etc/init.d (which was modified to match the example in the automake docs). The initramfs hook script cleaning now matches etc/init.d. There was a mix of SUBDIRS recursion and custom install rules for files in subdirectories. This was duplicated for the "hooks" and "scripts" subdirectories. Now everything uses SUBDIRS. I fixed the substitution of DEFAULT_INITCONF_DIR for hooks/zfs. Reviewed-By: Andrey Prokopenko <[email protected]> Reviewed-By: Brian Behlendorf <[email protected]> Reviewed-By: Tom Caputi <[email protected]> Signed-off-by: Richard Laager <[email protected]> Closes #10027
- Loading branch information
1 parent
657fd33
commit 4cfd339
Showing
6 changed files
with
16 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,6 @@ | ||
initrddir = /usr/share/initramfs-tools | ||
|
||
initrd_SCRIPTS = \ | ||
conf.d/zfs conf-hooks.d/zfs hooks/zfs scripts/zfs scripts/local-top/zfs | ||
|
||
SUBDIRS = hooks scripts | ||
SUBDIRS = conf.d conf-hooks.d hooks scripts | ||
|
||
EXTRA_DIST = \ | ||
$(top_srcdir)/contrib/initramfs/conf.d/zfs \ | ||
$(top_srcdir)/contrib/initramfs/conf-hooks.d/zfs \ | ||
$(top_srcdir)/contrib/initramfs/README.initramfs.markdown | ||
|
||
install-initrdSCRIPTS: $(EXTRA_DIST) | ||
for d in conf.d conf-hooks.d scripts/local-top; do \ | ||
$(MKDIR_P) $(DESTDIR)$(initrddir)/$$d; \ | ||
cp $(top_srcdir)/contrib/initramfs/$$d/zfs \ | ||
$(DESTDIR)$(initrddir)/$$d/; \ | ||
done | ||
for d in hooks scripts; do \ | ||
$(MKDIR_P) $(DESTDIR)$(initrddir)/$$d; \ | ||
cp $(top_builddir)/contrib/initramfs/$$d/zfs \ | ||
$(DESTDIR)$(initrddir)/$$d/; \ | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
confhooksddir = /usr/share/initramfs-tools/conf-hooks.d | ||
|
||
dist_confhooksd_DATA = \ | ||
zfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
confddir = /usr/share/initramfs-tools/conf.d | ||
|
||
dist_confd_DATA = \ | ||
zfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
localtopdir = /usr/share/initramfs-tools/scripts/local-top | ||
|
||
EXTRA_DIST = zfs | ||
dist_localtop_SCRIPTS = \ | ||
zfs |