tinkerbell / osie

An in-memory installation environment for bare metal.
https://tinkerbell.org
Apache License 2.0
99 stars 30 forks source link

conditional syntax not supported in future alpines #13

Closed nathangoulding closed 4 years ago

nathangoulding commented 4 years ago

The syntax ?// from installer/osie-installer.sh is not supported in jq on Alpine 3.11, and results in the error:

+ jq -S '. + {"password_hash":"'"$pwhash"'", "state": (.state?//"'"$state"'")}' <"$metadata" >"$metadata.tmp"
jq: error: syntax error, unexpected ?// (Unix shell quoting issues?) at <top-level>, line 1:
mrmrcoleman commented 4 years ago

Resolved in https://github.com/tinkerbell/osie/pull/14