Merge pull request #194530 from colemickens/stage-1-systemd-luksroot-toString-fix

nixos: luksroot: toString-ify keyFileSize usage
This commit is contained in:
Robert Hensing 2022-10-12 00:00:35 +01:00 committed by GitHub
commit 129fd1ab27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -481,8 +481,8 @@ let
++ optional v.allowDiscards "discard"
++ optionals v.bypassWorkqueues [ "no-read-workqueue" "no-write-workqueue" ]
++ optional (v.header != null) "header=${v.header}"
++ optional (v.keyFileOffset != null) "keyfile-offset=${v.keyFileOffset}"
++ optional (v.keyFileSize != null) "keyfile-size=${v.keyFileSize}"
++ optional (v.keyFileOffset != null) "keyfile-offset=${toString v.keyFileOffset}"
++ optional (v.keyFileSize != null) "keyfile-size=${toString v.keyFileSize}"
;
in "${n} ${v.device} ${if v.keyFile == null then "-" else v.keyFile} ${lib.concatStringsSep "," opts}") luks.devices));