Skip to content

Commit

Permalink
Merge pull request #157 from numtide/zfs_export
Browse files Browse the repository at this point in the history
export zfs pool after installation
  • Loading branch information
mergify[bot] authored Jul 18, 2023
2 parents a9b9f65 + f0b9ecd commit c40492c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand Down

0 comments on commit c40492c

Please sign in to comment.