mirror_zfs/contrib/dracut/90zfs
Rudd-O f8e87e205c Properly use the Dracut cleanup hook to order pool shutdown
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
2016-10-17 11:51:15 -07:00
..
.gitignore A collection of dracut fixes 2016-05-12 14:31:15 -07:00
export-zfs.sh.in Use -F to export pools so as not to dirty up device labels 2016-10-15 20:30:53 -07:00
Makefile.am Properly use the Dracut cleanup hook to order pool shutdown 2016-10-17 11:51:15 -07:00
module-setup.sh.in Properly use the Dracut cleanup hook to order pool shutdown 2016-10-17 11:51:15 -07:00
mount-zfs.sh.in Properly use the Dracut cleanup hook to order pool shutdown 2016-10-17 11:51:15 -07:00
parse-zfs.sh.in Fix the test to use the variable 2016-05-13 20:44:03 -07:00
zfs-generator.sh.in Use a different technique to detect whether to mount-zfs 2016-10-06 10:26:47 -07:00
zfs-lib.sh.in Use -F to export pools so as not to dirty up device labels 2016-10-15 20:30:53 -07:00
zfs-needshutdown.sh.in Properly use the Dracut cleanup hook to order pool shutdown 2016-10-17 11:51:15 -07:00