feat: add error handling for ZFS pool creation in prepare-zfs-datasets script
Some checks failed
Nix Format Check / check-format (push) Failing after 37s

This commit is contained in:
2025-03-12 11:31:35 +01:00
parent b03278ac86
commit cc2e48c96f

View File

@ -27,6 +27,12 @@ fi
# Create ZFS pool
sudo zpool create -f datapool "$device"
# Check if this went well
if [ $? -ne 0 ]; then
echo "Error creating ZFS pool. Exiting..."
exit 1
fi
# Create datasets with mountpoint=legacy
datasets=(
isos