Skip to content

Commit

Permalink
ZFS: add variables check step
Browse files Browse the repository at this point in the history
Very edge case, but just let it be
  • Loading branch information
kinrokinro authored Jan 21, 2025
1 parent 8521279 commit 0adb4a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions how-to-guides/zfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ Set variables:
ZFS_POOL_NAME="celestia" && ZFS_DATASET_NAME="bridge"
```

Validate variables are set:
```sh
if [ -z "$ZFS_POOL_NAME" ] || [ -z "$ZFS_DATASET_NAME" ]; then
echo "Error: Variables not set correctly"
exit 1
fi
```

Install ZFS utils:
```sh
sudo apt update && sudo apt install zfsutils-linux
Expand Down

0 comments on commit 0adb4a8

Please sign in to comment.