Move dracut directory to contrib

The dracut code is analogous to the initramfs code and as such
it should be located in the contrib with initramfs for consistency.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
Brian Behlendorf 2015-07-09 11:41:14 -07:00
parent 2cac7f5f11
commit cc49250563
14 changed files with 31 additions and 31 deletions

View File

@ -7,7 +7,7 @@ include $(top_srcdir)/config/tgz.am
SUBDIRS = include rpm SUBDIRS = include rpm
if CONFIG_USER if CONFIG_USER
SUBDIRS += dracut udev etc man scripts lib cmd contrib SUBDIRS += udev etc man scripts lib cmd contrib
endif endif
if CONFIG_KERNEL if CONFIG_KERNEL
SUBDIRS += module SUBDIRS += module

View File

@ -58,8 +58,6 @@ ZFS_AC_DEBUG_DMU_TX
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile
dracut/Makefile
dracut/90zfs/Makefile
udev/Makefile udev/Makefile
udev/rules.d/Makefile udev/rules.d/Makefile
etc/Makefile etc/Makefile
@ -115,6 +113,8 @@ AC_CONFIG_FILES([
cmd/zed/Makefile cmd/zed/Makefile
contrib/Makefile contrib/Makefile
contrib/bash_completion.d/Makefile contrib/bash_completion.d/Makefile
contrib/dracut/Makefile
contrib/dracut/90zfs/Makefile
contrib/initramfs/Makefile contrib/initramfs/Makefile
module/Makefile module/Makefile
module/avl/Makefile module/avl/Makefile

View File

@ -1,2 +1,2 @@
SUBDIRS = bash_completion.d initramfs SUBDIRS = bash_completion.d dracut initramfs
DIST_SUBDIRS = bash_completion.d initramfs DIST_SUBDIRS = bash_completion.d dracut initramfs

View File

@ -0,0 +1,25 @@
pkgdracutdir = $(dracutdir)/modules.d/90zfs
pkgdracut_SCRIPTS = \
$(top_srcdir)/contrib/dracut/90zfs/export-zfs.sh \
$(top_srcdir)/contrib/dracut/90zfs/module-setup.sh \
$(top_srcdir)/contrib/dracut/90zfs/mount-zfs.sh \
$(top_srcdir)/contrib/dracut/90zfs/parse-zfs.sh \
$(top_srcdir)/contrib/dracut/90zfs/zfs-lib.sh
EXTRA_DIST = \
$(top_srcdir)/contrib/dracut/90zfs/export-zfs.sh.in \
$(top_srcdir)/contrib/dracut/90zfs/module-setup.sh.in \
$(top_srcdir)/contrib/dracut/90zfs/mount-zfs.sh.in \
$(top_srcdir)/contrib/dracut/90zfs/parse-zfs.sh.in \
$(top_srcdir)/contrib/dracut/90zfs/zfs-lib.sh.in
$(pkgdracut_SCRIPTS):
-$(SED) -e 's,@bindir\@,$(bindir),g' \
-e 's,@sbindir\@,$(sbindir),g' \
-e 's,@udevdir\@,$(udevdir),g' \
-e 's,@udevruledir\@,$(udevruledir),g' \
-e 's,@sysconfdir\@,$(sysconfdir),g' \
'$@.in' >'$@'
distclean-local::
-$(RM) $(pkgdracut_SCRIPTS)

View File

@ -1,25 +0,0 @@
pkgdracutdir = $(dracutdir)/modules.d/90zfs
pkgdracut_SCRIPTS = \
$(top_srcdir)/dracut/90zfs/export-zfs.sh \
$(top_srcdir)/dracut/90zfs/module-setup.sh \
$(top_srcdir)/dracut/90zfs/mount-zfs.sh \
$(top_srcdir)/dracut/90zfs/parse-zfs.sh \
$(top_srcdir)/dracut/90zfs/zfs-lib.sh
EXTRA_DIST = \
$(top_srcdir)/dracut/90zfs/export-zfs.sh.in \
$(top_srcdir)/dracut/90zfs/module-setup.sh.in \
$(top_srcdir)/dracut/90zfs/mount-zfs.sh.in \
$(top_srcdir)/dracut/90zfs/parse-zfs.sh.in \
$(top_srcdir)/dracut/90zfs/zfs-lib.sh.in
$(pkgdracut_SCRIPTS):
-$(SED) -e 's,@bindir\@,$(bindir),g' \
-e 's,@sbindir\@,$(sbindir),g' \
-e 's,@udevdir\@,$(udevdir),g' \
-e 's,@udevruledir\@,$(udevruledir),g' \
-e 's,@sysconfdir\@,$(sysconfdir),g' \
'$@.in' >'$@'
distclean-local::
-$(RM) $(pkgdracut_SCRIPTS)

View File

@ -313,7 +313,7 @@ exit 0
%{_datadir}/%{name} %{_datadir}/%{name}
%files dracut %files dracut
%doc dracut/README.dracut.markdown %doc contrib/dracut/README.dracut.markdown
%{_dracutdir}/modules.d/* %{_dracutdir}/modules.d/*
%if 0%{?_initramfs} %if 0%{?_initramfs}