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

This commit is contained in:
Sandro Jäckel
2023-12-18 02:16:08 +01:00
parent 7ed419e80f
commit 8c58a7cb4b
+1 -1
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" ]