Archived
Check NixOS configurations / eval-hosts (pull_request) Successful in 10m46s
zpool create -f was called if `zpool import -d /dev/disk/by-id` failed, which could happen due to a race with systemd-udev-settle. The disk would then be visible by the time zpool create ran, silently destroying all data on an otherwise-intact pool. Fix: locate the data disk first, retry the import directly against it as a fallback, then check zdb -l for existing ZFS label metadata before concluding the disk is blank. Remove -f so zpool create refuses rather than overwrites if a pool is present. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ULXzafSDwGhmFGnn3LtDSQ