mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-31 03:04:11 +03:00
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:
committed by
Brian Behlendorf
parent
8ac9b5e6b5
commit
07a3312f17
@@ -67,5 +67,7 @@ case "$root" in
|
||||
else
|
||||
mount -o zfsutil -t zfs "$zfsbootfs" "$NEWROOT" && ROOTFS_MOUNTED=yes
|
||||
fi
|
||||
|
||||
need_shutdown
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user