November 3Nov 3 HelloI built my custom server image with LUKS encryption and everything was fine with regards to the encrytped rootfs on emmc. However I ran into boot failure issues when I tried adding other disks with LUKS encryption (because I had moved /var to new LUKS disk). After some time spent in debugging and recovery it turned out that my custom built Armbian never ran systemd-cryptsetup-generator to dynamically generate the systemd units needed to unlock encrypted volumes during boot and hence failed to correctly setup and hit the corresponding cryptsetup.targetFinally I ended up installing package systemd-cryptsetup manually and run systemd-cryptsetup-generator to resolve it (auto-generate the target unit files - update-initramfs after editing /etc/crypttab should trigger it, but in this case the package itself was missing?), and it cost me a few hours troubleshooting why... (more so because I was determined not to introduce a manual hack/override for something that should not be broken in the first place).I think by default Armbian build framework should include the systemd-cryptsetup package (for both server and minimal), when CRYPTROOT_ENABLE is set - as encryption is a basic default configuration these days..ThanksPS: At this point I have forgotten the reasons I had deduced why cryptroot worked and only the additional LUKS disks were impacted. But in any case the ask/fix is small - the Armbian build environment should include package systemd-cryptsetup by default without having to resort to extensions or userpatches ... Edited Wednesday at 06:21 AM5 days by Raul
4 hours ago4 hr On 11/3/2026 at 1:01 PM, Raul said:I think by default Armbian build framework should include the systemd-cryptsetup packageYou are right. https://github.com/armbian/build/pull/11300/changesFeel free to open PR next time. Otherwise its missed.PSI made many improvements to LUKS encryption lately. One desktop variant is going to be released (v26.11) with a default encrypted rootfs.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.