mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 22:13:28 +01:00
zfs: always force creation of zpool
This commit is contained in:
1 parent
55eea2030a
commit
88c99e1d39
1 file changed
+1
-1
+1
-1
@@ -64,7 +64,7 @@
|
|||||||
inherit config options;
|
inherit config options;
|
||||||
default = _: ''
|
default = _: ''
|
||||||
readarray -t zfs_devices < <(cat "$disko_devices_dir"/zfs_${config.name})
|
readarray -t zfs_devices < <(cat "$disko_devices_dir"/zfs_${config.name})
|
||||||
zpool create ${config.name} \
|
zpool create -f ${config.name} \
|
||||||
-R ${config.mountRoot} ${config.mode} \
|
-R ${config.mountRoot} ${config.mode} \
|
||||||
${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-o ${n}=${v}") config.options)} \
|
${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-o ${n}=${v}") config.options)} \
|
||||||
${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-O ${n}=${v}") config.rootFsOptions)} \
|
${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-O ${n}=${v}") config.rootFsOptions)} \
|
||||||
|
|||||||
Reference in new issue
Block a user