diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-22 11:18:34 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-03-05 16:14:23 +0100 |
commit | d732ae584b293a8826a4b08d202cf16f24cdaa8b (patch) | |
tree | d6c373e76b170fe2a848a0dd0c6489ec6db8bc86 | |
parent | a0b66a149533ede4da0e12447d96958233dbec8e (diff) | |
download | aports-d732ae584b293a8826a4b08d202cf16f24cdaa8b.tar.bz2 aports-d732ae584b293a8826a4b08d202cf16f24cdaa8b.tar.xz |
scripts/genrootfs.sh: make sure root login is disabled
-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 \ --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 |