From f6edd864714ad2f3f15bd52f0a9ec27d118bed7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=B6hmke?= Date: Sun, 15 Dec 2019 17:48:38 +0100 Subject: [PATCH] fixed generation of initial password --- resources/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/build.sh b/resources/build.sh index 00a66a5..902c0a2 100755 --- a/resources/build.sh +++ b/resources/build.sh @@ -196,8 +196,10 @@ if [ ! -f /data/etc/hostname ]; then fi # root password -root_pw=\$(mkpasswd -m sha-512 -s "${DEFAULT_ROOT_PASSWORD}") -echo "root:\${root_pw}:0:0:::::" > /data/etc/shadow +if [ ! -f /data/etc/shadow ]; then + root_pw=\$(mkpasswd -m sha-512 -s "${DEFAULT_ROOT_PASSWORD}") + echo "root:\${root_pw}:0:0:::::" > /data/etc/shadow +fi # interface mkdir -p /data/etc/network