mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
07a3312f17
Make use of Dracut's ability to restore the initramfs on shutdown and pivot to it, allowing for a clean unmount and export of the ZFS root. No need to force-import on every reboot anymore. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #2195 Issue #2476 Issue #2498 Issue #2556 Issue #2563 Issue #2575 Issue #2600 Issue #2755 Issue #2766
24 lines
723 B
Makefile
24 lines
723 B
Makefile
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
|
|
|
|
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
|
|
|
|
$(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)
|