Antonio Russo f88d069cbb systemd encryption key support
Modify zfs-mount-generator to produce a dependency on new
zfs-import-key-*.service units, dynamically created at boot to call
zfs load-key for the encryption root, before attempting to mount any
encrypted datasets.

These units are created by zfs-mount-generator, and RequiresMountsFor on
the keyfile, if present, or call systemd-ask-password if a passphrase is
requested.

This patch includes suggestions from @Fabian-Gruenbichler, @ryanjaeb and
@rlaager, as well an adaptation of @rlaager's script to retry on
incorrect password entry.

Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes #8750
Closes #8848
2019-07-15 16:31:47 -07:00
..
2019-07-15 16:31:47 -07:00
2019-06-24 09:32:47 -07:00
2018-02-23 11:38:05 -08:00
2018-02-23 11:38:05 -08:00
2015-05-11 15:07:00 -07:00
2017-01-03 11:31:18 -06:00
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00
2017-04-12 08:57:25 -07:00
2015-05-11 15:07:00 -07:00
2016-12-12 10:46:26 -08:00
2015-05-11 15:07:00 -07:00