Commit 72c7a7a3 authored by Natanael Copa's avatar Natanael Copa

scripts/genrootfs.sh: make sure root login is disabled

parent be41538f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment