build-debian: Add a way to override the random root password

This commit is contained in:
Johan Gunnarsson 2023-03-05 19:11:31 +01:00
parent d64d528ed3
commit 46b84c4e7f
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ openssh-server \
"${SCRIPT}"
# Randomly generated root password
PASSWORD=$(pwgen -B -A 6 1)
PASSWORD="${PASSWORD_OVERRIDE:-$(pwgen -B -A 6 1)}"
# Write apt sources config
case "${OS}-${ARCH}-${DIST}" in