mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 21:43:29 +01:00
more quotes to make shellcheck happy
This commit is contained in:
1 parent
6d630b8fe4
commit
6da7333a76
6 files changed
+11
-7
No files matched your search
+2
-1
@@ -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)}
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user