Skip to content

Commit aaef92a

Browse files
committed
export zfs pool after installation
1 parent e516d37 commit aaef92a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nixos-anywhere.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ export PATH=\$PATH:/run/current-system/sw/bin
423423
mkdir -p /mnt/tmp
424424
chmod 777 /mnt/tmp
425425
nixos-install --no-root-passwd --no-channel-copy --system "$nixos_system"
426+
zpool export -a || : # we always want to export the zfs pools so people can boot from it without force import
426427
# We will reboot in background so we can cleanly finish the script before the hosts go down.
427428
# This makes integration into scripts easier
428429
nohup bash -c '${maybe_reboot}' >/dev/null &

0 commit comments

Comments
 (0)