X-Git-Url: https://code.delx.au/monosys/blobdiff_plain/1dab9607a5d0ce1cdd3fb02f04445fc38040f456..ed9c8c3977e20d357e6099d0352d5ddf84b17151:/etc/systemd/system/disable-crypto_keyfile%40.service diff --git a/etc/systemd/system/disable-crypto_keyfile@.service b/etc/systemd/system/disable-crypto_keyfile@.service new file mode 100644 index 0000000..7959532 --- /dev/null +++ b/etc/systemd/system/disable-crypto_keyfile@.service @@ -0,0 +1,11 @@ +[Unit] +Description=Disable /root/crypto_keyfile.bin on every boot +After=basic.target + +[Service] +Type=oneshot +ExecStart=cryptsetup luksRemoveKey /dev/disk/by-uuid/%i /crypto_keyfile.bin +SuccessExitStatus=2 + +[Install] +WantedBy=basic.target