CRYPTSETUP-CONFIG(8)
β¨ CRYPTSETUP-CONFIG β¨ (that's the cryptsetup-config page from section 8, maintenance commands bestie)
πΈ NAME πΈ
cryptsetup-config β set permanent configuration options (store to LUKS header) πΎ
π SYNOPSIS π
cryptsetup config <options> <device>
π¦ DESCRIPTION π¦
okay so. this command sets permanent configuration options, and by permanent we mean it writes them straight into the LUKS header. like, they live there now. no take-backs without rewriting the header. π
heads up bestie: the config command is supported only for LUKS2. LUKS1 girlies, this is not for you.
the permanent options you can set are:
--priorityβ sets the priority (normal,prefer,ignore) for a keyslot, and you pick which keyslot with--key-slotπ--labelβ set a label--subsystemβ set a subsystem
and <options> can be [--priority, --label, --subsystem, --key-slot, --header, --disable-locks]. that's the whole roster, no more no less. π
β¨ OPTIONS β¨
--batch-mode,-qβ suppresses all confirmation questions. use with care! π and if--verify-passphraseis not specified, this option also switches off the passphrase verification. so like, no double-checking your typing. scary but iconic.--debugor--debug-jsonβ run in debug mode with full diagnostic logs. debug output lines are always prefixed by#. and if you use--debug-json, you also get additional LUKS2 JSON data structures printed out. πβ¨--disable-locksβ disable lock protection for metadata on disk. this option is valid only for LUKS2 and is ignored for other formats.
WARNING: do not use this option unless you run cryptsetup in a restricted environment where locking is impossible to perform (where the /run directory cannot be used). fr fr, don't just vibe your way into this one. π
--header <device or file storing the LUKS header>β use a detached (separated) metadata device or file where the LUKS header is stored. this option allows one to store the ciphertext and the LUKS header on different devices. π«Ά
for commands that change the LUKS header (e.g., luksAddKey), specify the device or file with the LUKS header directly as the LUKS device.
--help,-?β show help text and default parameters. the classic. π--key-slot,-S <0-N>β for LUKS operations that add key material, this option lets you specify which keyslot is selected for the new key. π
the maximum number of keyslots depends on the LUKS version. LUKS1 can have up to 8 keyslots. LUKS2 can have up to 32 keyslots based on keyslot area size and key size, but a valid keyslot ID can always be between 0 and 31 for LUKS2.
--label <label>,--subsystem <subsystem>β set label and subsystem description for a LUKS2 device. these are similar to filesystem labels. the label and subsystem are optional fields and can be later used in udev scripts to trigger user actions once the device marked by these labels is detected. π·οΈ--priority <normal|prefer|ignore>β set a priority for a LUKS2 keyslot. thepreferpriority marked slots are tried before thenormalpriority ones. theignoredpriority means that the slot is never used, if not explicitly requested by the--key-slotoption. π--usageβ show short option help. the little snack version. π--version,-Vβ show the program version. β
π REPORTING BUGS π
found a bug? bestie, report it at the cryptsetup mailing list <cryptsetup@lists.linux.dev> or in the Issues project section <https://gitlab.com/cryptsetup/cryptsetup/-/issues/new>.
please attach the output of the failed command with --debug option added. that's the receipt, we need the receipt. π
π SEE ALSO π
- Cryptsetup FAQ
<https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions> cryptsetup(8),integritysetup(8)andveritysetup(8)
π CRYPTSETUP π
part of the cryptsetup project <https://gitlab.com/cryptsetup/cryptsetup/>. main character energy, no cap. π
and that's the whole page, babe β¨ this was cryptsetup 2.8.8, dated 2026-09-07, from the cryptsetup project β go forth and configure your LUKS headers responsibly π§π
π¦ where this page comes from
- arch rolling: cryptsetup 2.8.8-1 Β· GPL-2.0-or-later
- fedora 44: cryptsetup 2.8.8-1.fc44 Β· GPL-2.0-or-later WITH cryptsetup-OpenSSL-exception AND LGPL-2.1-or-later WITH cryptsetup-OpenSSL-exception
- nixpkgs unstable: cryptsetup 2.8.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms