diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-03 09:08:13 -0700 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-11 18:33:36 -0700 |
| commit | 15c7b6a5c448e88bd2c2e84338d14103362bc302 (patch) | |
| tree | 647089fd4ceaa9dfdaeb2c93f30c056026c850bb | |
| parent | Run packer fmt on packer hcl files (diff) | |
| download | site-server-images-15c7b6a5c448e88bd2c2e84338d14103362bc302.zip | |
Fix disklabel template required to be always readable
| -rwxr-xr-x | build-openbsd-image.sh | 4 |
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 |