aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-02-22 11:18:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-03-04 12:07:52 +0100
commitaead2f72bc0e3f86b00d85b69705d62798541d94 (patch)
treea3d0adec9d73f3e9b0a0ba4b5792ea099e11f968 /scripts
parent0bfe3678686189b1417d11fa9e11880a1ddd85c2 (diff)
downloadaports-aead2f72bc0e3f86b00d85b69705d62798541d94.tar.bz2
aports-aead2f72bc0e3f86b00d85b69705d62798541d94.tar.xz
scripts/genrootfs.sh: make sure root login is disabled
Diffstat (limited to 'scripts')
-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