zfs/etc/systemd
Jean-Baptiste Lallement ceadc0dbbd Make unloading the key more robust
The unit was failing instead of stopping if someone manually unloaded
the key before stopping the unit (zfs unload-key is failing on an
unavailable key).
Follow a similar logic than for loading the key, checking for the key
status before unloading it.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
Signed-off-by: Didier Roche <didrocks@ubuntu.com>
Closes #10477
2020-07-19 10:04:14 -07:00
..
system Centralize variable substitution 2020-07-14 17:33:44 -07:00
system-generators Make unloading the key more robust 2020-07-19 10:04:14 -07:00
Makefile.am systemd mount generator and tracking ZEDLET 2018-04-06 14:11:09 -07:00