nixos/luksroot: add final newline to /etc/crypttab

This commit is contained in:
Sandro Jäckel 2023-12-18 01:55:20 +01:00
parent 7ed419e80f
commit 8c58a7cb4b
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -513,7 +513,7 @@ let
postLVM = filterAttrs (n: v: !v.preLVM) luks.devices;
stage1Crypttab = pkgs.writeText "initrd-crypttab" (lib.concatStringsSep "\n" (lib.mapAttrsToList (n: v: let
stage1Crypttab = pkgs.writeText "initrd-crypttab" (lib.concatLines (lib.mapAttrsToList (n: v: let
opts = v.crypttabExtraOpts
++ optional v.allowDiscards "discard"
++ optionals v.bypassWorkqueues [ "no-read-workqueue" "no-write-workqueue" ]