From 4950c74e25a460a44e4409f241a0919059aea8cb Mon Sep 17 00:00:00 2001 From: Florian Sesser <florian@private.storage> Date: Fri, 28 Apr 2023 18:47:09 +0000 Subject: [PATCH] Autoload loop module on boot to fix cryptswap init --- morph/lib/issuer-aws.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/morph/lib/issuer-aws.nix b/morph/lib/issuer-aws.nix index 065e37be..09b43de2 100644 --- a/morph/lib/issuer-aws.nix +++ b/morph/lib/issuer-aws.nix @@ -13,6 +13,11 @@ randomEncryption = true; } ]; + # If we don't autoload the loop module, crypt-swap setup fails with the + # not very helpful message: "loop device with autoclear flag is required" + # See https://unix.stackexchange.com/a/554500/81275 + boot.kernelModules = [ "loop" ]; + # Break the tie between AWS and morph for the hostname by forcing the # morph-supplied name. See also # <https://github.com/DBCDK/morph/issues/146>. -- GitLab