mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 18:31:00 +03:00
f8e87e205c
When Dracut starts up, it needs to determine whether a pool will remain "hanging open" before the system shuts off. In such a case, then the code to clean up the pool (using the previous export -F work) must be invoked. Since Dracut has had a recent change that makes mount-zfs.sh simply not run when the root dataset is already mounted, we must use the cleanup hook to order Dracut to do shutdown cleanup. Important note: this code will not accomplish its stated goal until this bug is fixed: https://bugzilla.redhat.com/show_bug.cgi?id=1385432 That bug impacts more than just ZFS. It impacts LUKS, dmraid, and unmount during poweroff. It is a Fedora-wide bug. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Manuel Amador (Rudd-O) <rudd-o@rudd-o.com> Closes #5287
31 lines
925 B
Makefile
31 lines
925 B
Makefile
pkgdracutdir = $(dracutdir)/modules.d/90zfs
|
|
pkgdracut_SCRIPTS = \
|
|
export-zfs.sh \
|
|
module-setup.sh \
|
|
mount-zfs.sh \
|
|
parse-zfs.sh \
|
|
zfs-generator.sh \
|
|
zfs-needshutdown.sh \
|
|
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-generator.sh.in \
|
|
$(top_srcdir)/contrib/dracut/90zfs/zfs-needshutdown.sh.in \
|
|
$(top_srcdir)/contrib/dracut/90zfs/zfs-lib.sh.in
|
|
|
|
$(pkgdracut_SCRIPTS):%:%.in
|
|
-$(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' \
|
|
-e 's,@systemdunitdir\@,$(systemdunitdir),g' \
|
|
$< >'$@'
|
|
|
|
distclean-local::
|
|
-$(RM) $(pkgdracut_SCRIPTS)
|