Amend Dracut module to export ZFS root on shutdown

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
This commit is contained in:
Lukas Wunner
2014-10-06 13:08:33 +02:00
committed by Brian Behlendorf
parent 8ac9b5e6b5
commit 07a3312f17
6 changed files with 60 additions and 0 deletions
+2
View File
@@ -67,5 +67,7 @@ case "$root" in
else
mount -o zfsutil -t zfs "$zfsbootfs" "$NEWROOT" && ROOTFS_MOUNTED=yes
fi
need_shutdown
;;
esac