aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/genrootfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/genrootfs.sh')
-rwxr-xr-xscripts/genrootfs.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/genrootfs.sh b/scripts/genrootfs.sh
index ac760e6e0d..5118027632 100755
--- a/scripts/genrootfs.sh
+++ b/scripts/genrootfs.sh
@@ -39,6 +39,9 @@ ${APK:-apk} fetch --keys-dir "$keys_dir" --no-cache \
--repositories-file "$repositories_file" \
--stdout --quiet alpine-base | tar -zx -C "$tmp" etc/
+# make sure root login is disabled
+sed -i -e 's/^root::/root:!:/' "$tmp"/etc/shadow
+
branch=edge
VERSION_ID=$(awk -F= '$1=="VERSION_ID" {print $2}' "$tmp"/etc/os-release)
case $VERSION_ID in