From cc93e481314b4bf1b0c8e9669f83afc3eb412b06 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 28 Feb 2020 08:34:07 +0100 Subject: [PATCH] password generation utility was still python2 --- build.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 3f2c65e..a051700 100755 --- a/build.sh +++ b/build.sh @@ -342,16 +342,15 @@ EOF if [ -z "$ROOT_PASSWORD" ] ; then # Generate an encrypted password with crypt() if not defined # in a static configuration. - ROOT_PASSWORD=$(python <$OVERLAY/etc/passwd + sed -e "s@^root:[^:]*:\(.*\)@root:$ROOT_PASSWORD:\1@" ${VARIANT}/passwd > $OVERLAY/etc/passwd # this is more harmful than helpful # idea being, since we start a full-featured fedora system now, it would -- 2.43.0