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