From 72c7a7a3caf28c06289dc5f65e1756b38cfb00ca Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 22 Feb 2019 11:18:34 +0000 Subject: scripts/genrootfs.sh: make sure root login is disabled --- scripts/genrootfs.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/genrootfs.sh b/scripts/genrootfs.sh index ac760e6e0de..51180276324 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 -- cgit v1.2.3