Skip to content

Automatic LUKS unlocking

Thomas Gläßle edited this page Jun 1, 2017 · 1 revision

Starting with udisks version 2.6.4, it is possible to automatically unlock LUKS devices using configured keyfiles.

The keyfile can be configured in the config file, which is usually located in ~/.config/udiskie/config.yml:

device_config:
- id_uuid: ...
  keyfile: /path/to/your/keyfile

You can get the UUID of your device from e.g.:

  • udiskie-info -o '{id_uuid}' /dev/sda1
  • ls -la /dev/disk/by-uuid/,
  • sudo lsblk -f