From: Thierry Parmentelat Date: Fri, 28 Feb 2020 07:34:07 +0000 (+0100) Subject: password generation utility was still python2 X-Git-Url: http://git.onelab.eu/?p=bootcd.git;a=commitdiff_plain;h=cc93e481314b4bf1b0c8e9669f83afc3eb412b06 password generation utility was still python2 --- 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