diff --git a/src/confd/bin/gen-admin-auth b/src/confd/bin/gen-admin-auth index ac19718d..66c2781f 100755 --- a/src/confd/bin/gen-admin-auth +++ b/src/confd/bin/gen-admin-auth @@ -5,7 +5,12 @@ shell="$1" pwhash="$(jq .pwhash /run/system.json)" if [ -z "$pwhash" ] || [ "$pwhash" = "null" ]; then - exit 1 + # Do not fail, lock account instead. This way developers can enable + # root account login at build-tiem to diagnose the system. + pwhash="!" + rc=1 +else + rc=0 fi cat <