aboutsummaryrefslogtreecommitdiffstats
path: root/build-openbsd-image.sh
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-10-03 09:08:13 -0700
committerEugene Triguba <hello@eugenetriguba.com>2026-10-11 18:33:36 -0700
commit15c7b6a5c448e88bd2c2e84338d14103362bc302 (patch)
tree647089fd4ceaa9dfdaeb2c93f30c056026c850bb /build-openbsd-image.sh
parentRun packer fmt on packer hcl files (diff)
downloadsite-server-images-15c7b6a5c448e88bd2c2e84338d14103362bc302.zip
Fix disklabel template required to be always readable
Diffstat (limited to 'build-openbsd-image.sh')
-rwxr-xr-xbuild-openbsd-image.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build-openbsd-image.sh b/build-openbsd-image.sh
index 0e14e54..3de02e4 100755
--- a/build-openbsd-image.sh
+++ b/build-openbsd-image.sh
@@ -23,7 +23,9 @@ main() (
parse_args "$@"
cd openbsd-image/
require_readable_file "$SSH_KEY"
- require_readable_file "$DISKLABEL_TEMPLATE"
+ if [ -n "$DISKLABEL_TEMPLATE" ]; then
+ require_readable_file "$DISKLABEL_TEMPLATE"
+ fi
if [ -d build/ ]; then
printf 'Build directory exists. Must delete before re-building. Proceed? (y/N)'
read -r answer