scripts/genrootfs.sh: locked -> invalid password (fixes )

this still forbids password login but allows logins via ssh keys with
pam disabled.
This commit is contained in:
Alex Xu (Hello71) 2021-12-10 18:26:50 -05:00 committed by Natanael Copa
parent 3d584dff1c
commit fbe926afc7

View file

@ -41,7 +41,7 @@ ${APK:-apk} fetch --keys-dir "$keys_dir" --no-cache \
--stdout --quiet alpine-base | tar -zx -C "$tmp" etc/
# make sure root login is disabled
sed -i -e 's/^root::/root:!:/' "$tmp"/etc/shadow
sed -i -e 's/^root::/root:*:/' "$tmp"/etc/shadow
branch=edge
VERSION_ID=$(awk -F= '$1=="VERSION_ID" {print $2}' "$tmp"/etc/os-release)