]> git.proxmox.com Git - mirror_zfs.git/commit
Run zfs load-key if needed in dracut
authorMatthew Thode <mthode@mthode.org>
Thu, 18 Jan 2018 18:20:34 +0000 (18:20 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 18 Jan 2018 18:20:34 +0000 (10:20 -0800)
commit7da8f8d81bf1fadc2d9dff10f0435fe601e919fa
treec7cfb694f5a0fbf8a9645863476d1445d0ebdbb0
parent79c3270476b7140220c7946dd0a709a31bb9ed1b
Run zfs load-key if needed in dracut

'zfs load-key -a' will only be called if needed.  If a dataset not
needed for boot does not have its key loaded (home directories for
example) boot can still continue.

zfs:AUTO was not working via dracut, so we still need the generator
script to do its thing.

Reviewed-by: Richard Yao <ryao@gentoo.org>
Reviewed-by: Manuel Amador (Rudd-O) <rudd-o@rudd-o.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Signed-off-by: Matthew Thode <mthode@mthode.org>
Closes #6982
Closes #7004
contrib/dracut/90zfs/Makefile.am
contrib/dracut/90zfs/module-setup.sh.in
contrib/dracut/90zfs/mount-zfs.sh.in
contrib/dracut/90zfs/zfs-generator.sh.in
contrib/dracut/90zfs/zfs-load-key.sh.in [new file with mode: 0755]
contrib/dracut/90zfs/zfs-needshutdown.sh.in [changed mode: 0644->0755]
etc/systemd/system/zfs-import-cache.service.in
etc/systemd/system/zfs-import-scan.service.in