diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-22 11:18:34 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-28 22:10:08 +0100 |
commit | 7a2566ec8260ceacae81088ebe2ffe6526c3809e (patch) | |
tree | ebdddba9d316526dbb077ec1530fd2184345f4e2 | |
parent | 6d5a5abc5f6e4e823991b64277c60667cfa37482 (diff) | |
download | alpine_aports-7a2566ec8260ceacae81088ebe2ffe6526c3809e.tar.bz2 alpine_aports-7a2566ec8260ceacae81088ebe2ffe6526c3809e.tar.xz alpine_aports-7a2566ec8260ceacae81088ebe2ffe6526c3809e.zip |
scripts/genrootfs.sh: make sure root login is disabled
(cherry picked from commit 72c7a7a3caf28c06289dc5f65e1756b38cfb00ca)
-rwxr-xr-x | scripts/genrootfs.sh | 3 |
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 \ | |||
39 | --repositories-file "$repositories_file" \ | 39 | --repositories-file "$repositories_file" \ |
40 | --stdout --quiet alpine-base | tar -zx -C "$tmp" etc/ | 40 | --stdout --quiet alpine-base | tar -zx -C "$tmp" etc/ |
41 | 41 | ||
42 | # make sure root login is disabled | ||
43 | sed -i -e 's/^root::/root:!:/' "$tmp"/etc/shadow | ||
44 | |||
42 | branch=edge | 45 | branch=edge |
43 | VERSION_ID=$(awk -F= '$1=="VERSION_ID" {print $2}' "$tmp"/etc/os-release) | 46 | VERSION_ID=$(awk -F= '$1=="VERSION_ID" {print $2}' "$tmp"/etc/os-release) |
44 | case $VERSION_ID in | 47 | case $VERSION_ID in |