X-Git-Url: http://git.onelab.eu/?p=bootcd.git;a=blobdiff_plain;f=build.sh;h=a051700d2be0d8790ede14d557ca0dabf3a202ae;hp=3f2c65e365b301c57ed10d0022beb710d55173b0;hb=cc93e481314b4bf1b0c8e9669f83afc3eb412b06;hpb=976d12b1ac57cd0700da7d74657bfd5f2215dc25 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