From 88c99e1d39160366ee8d0933a93842a276ca4679 Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Wed, 14 Jun 2023 22:19:02 +0200 Subject: [PATCH] zfs: always force creation of zpool --- lib/types/zpool.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/types/zpool.nix b/lib/types/zpool.nix index 3ec59df..2733e8f 100644 --- a/lib/types/zpool.nix +++ b/lib/types/zpool.nix @@ -64,7 +64,7 @@ inherit config options; default = _: '' 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} \ ${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-o ${n}=${v}") config.options)} \ ${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-O ${n}=${v}") config.rootFsOptions)} \