From aaef92aef99a0879222c6d357d574e3d938f66c0 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 15 Jul 2023 16:01:38 +0200 Subject: [PATCH] export zfs pool after installation --- src/nixos-anywhere.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nixos-anywhere.sh b/src/nixos-anywhere.sh index 98431c1..15fdea5 100755 --- a/src/nixos-anywhere.sh +++ b/src/nixos-anywhere.sh @@ -423,6 +423,7 @@ export PATH=\$PATH:/run/current-system/sw/bin mkdir -p /mnt/tmp chmod 777 /mnt/tmp nixos-install --no-root-passwd --no-channel-copy --system "$nixos_system" +zpool export -a || : # we always want to export the zfs pools so people can boot from it without force import # We will reboot in background so we can cleanly finish the script before the hosts go down. # This makes integration into scripts easier nohup bash -c '${maybe_reboot}' >/dev/null &