mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53:28 +01:00
fix: make optionsAfterCreate optional.
This commit is contained in:
1 parent
49badf305f
commit
fb229950e0
1 file changed
+3
-1
@@ -1159,7 +1159,9 @@ rec {
|
|||||||
${concatStringsSep " " (mapAttrsToList (n: v: "-o ${n}=${v}") config.options)} \
|
${concatStringsSep " " (mapAttrsToList (n: v: "-o ${n}=${v}") config.options)} \
|
||||||
${concatStringsSep " " (mapAttrsToList (n: v: "-O ${n}=${v}") config.rootFsOptions)} \
|
${concatStringsSep " " (mapAttrsToList (n: v: "-O ${n}=${v}") config.rootFsOptions)} \
|
||||||
''${ZFSDEVICES_${config.name}}
|
''${ZFSDEVICES_${config.name}}
|
||||||
zfs set ${concatStringsSep " " (mapAttrsToList (n: v: "${n}=${v}") config.optionsAfterCreate)} ${config.name}
|
${lib.optionalString
|
||||||
|
(config.optionsAfterCreate != {})
|
||||||
|
"zfs set ${concatStringsSep " " (mapAttrsToList (n: v: "${n}=${v}") config.optionsAfterCreate)} ${config.name}"}
|
||||||
${concatMapStrings (dataset: dataset._create config.name) (attrValues config.datasets)}
|
${concatMapStrings (dataset: dataset._create config.name) (attrValues config.datasets)}
|
||||||
'';
|
'';
|
||||||
description = "Creation script";
|
description = "Creation script";
|
||||||
|
|||||||
Reference in new issue
Block a user