From 15c7b6a5c448e88bd2c2e84338d14103362bc302 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 3 Oct 2026 09:08:13 -0700 Subject: Fix disklabel template required to be always readable --- build-openbsd-image.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3