more quotes to make shellcheck happy

This commit is contained in:
lassulus committed 2023-02-14 10:07:22 +01:00
1 parent 6d630b8fe4
commit 6da7333a76
6 files changed
+11 -7

No files matched your search

+2 -1
View File
@@ -52,11 +52,12 @@
_create = diskoLib.mkCreateOption {
inherit config options;
default = _: ''
readarray -t zfs_devices < <(cat "$disko_devices_dir"/zfs_${config.name})
zpool create ${config.name} \
${config.mode} \
${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-o ${n}=${v}") config.options)} \
${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-O ${n}=${v}") config.rootFsOptions)} \
$(tr '\n' ' ' < $disko_devices_dir/zfs_${config.name})
"''${zfs_devices[@]}"
${lib.concatMapStrings (dataset: dataset._create {zpool = config.name;}) (lib.attrValues config.datasets)}
'';
};