diff options
author | Richard Laager <[email protected]> | 2020-02-22 18:09:55 -0600 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-03-10 09:53:20 -0700 |
commit | 01243e72a5d7144345a9c13ab4455a52003fc0af (patch) | |
tree | 0ddf752a6a4a0bbfe8f2916cbcd54af385bbd429 /contrib/initramfs | |
parent | 49afc91387cdf91e1b6e247211b16209be2fa252 (diff) |
initramfs: Eliminate substitutions
These are now handled in zfs-functions, so this is all duplicative and
unnecessary.
Signed-off-by: Richard Laager <[email protected]>
Diffstat (limited to 'contrib/initramfs')
-rw-r--r-- | contrib/initramfs/scripts/Makefile.am | 18 | ||||
-rw-r--r-- | contrib/initramfs/scripts/zfs (renamed from contrib/initramfs/scripts/zfs.in) | 10 |
2 files changed, 2 insertions, 26 deletions
diff --git a/contrib/initramfs/scripts/Makefile.am b/contrib/initramfs/scripts/Makefile.am index 3ab18ba2c..2a142096e 100644 --- a/contrib/initramfs/scripts/Makefile.am +++ b/contrib/initramfs/scripts/Makefile.am @@ -1,22 +1,6 @@ scriptsdir = /usr/share/initramfs-tools/scripts -scripts_DATA = \ +dist_scripts_DATA = \ zfs SUBDIRS = local-top - -EXTRA_DIST = \ - $(top_srcdir)/contrib/initramfs/scripts/zfs.in - -$(scripts_DATA):%:%.in - -$(SED) -e 's,@sbindir\@,$(sbindir),g' \ - -e 's,@sysconfdir\@,$(sysconfdir),g' \ - $< >'$@' - -# Double-colon rules are allowed; there are multiple independent definitions. -clean-local:: - -$(RM) $(scripts_SCRIPTS) - -# Double-colon rules are allowed; there are multiple independent definitions. -distclean-local:: - -$(RM) $(scripts_SCRIPTS) diff --git a/contrib/initramfs/scripts/zfs.in b/contrib/initramfs/scripts/zfs index 4bbdf53a7..dbc4e253f 100644 --- a/contrib/initramfs/scripts/zfs.in +++ b/contrib/initramfs/scripts/zfs @@ -6,17 +6,9 @@ # Enable this by passing boot=zfs on the kernel command line. # -# Source the common init script +# Source the common functions . /etc/zfs/zfs-functions -# Paths to what we need - in the initrd, these paths are hardcoded, -# so override the defines in zfs-functions. -ZFS="@sbindir@/zfs" -ZPOOL="@sbindir@/zpool" -ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache" -export ZFS ZPOOL ZPOOL_CACHE - - # Start interactive shell. # Use debian's panic() if defined, because it allows to prevent shell access # by setting panic in cmdline (e.g. panic=0 or panic=15). |