make_chroot: Remove perl logic for password generation.

make_chroot.sh requires perl for only one line of code that
returns the same result each time. Since no one actually uses
this password, remove all the logic associated with it and leave
it unset.

BUG=chromium:423423
TEST=Deleted and recreated my chroot.

Change-Id: Ifd93d7961db9dd8846717d9084853a0bb6b9f64b
Reviewed-on: https://chromium-review.googlesource.com/223323
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Simran Basi <sbasi@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
diff --git a/sdk_lib/make_chroot.sh b/sdk_lib/make_chroot.sh
index 2d160b9..d86ba25 100755
--- a/sdk_lib/make_chroot.sh
+++ b/sdk_lib/make_chroot.sh
@@ -71,8 +71,6 @@
 
 FULLNAME="ChromeOS Developer"
 DEFGROUPS="eng,adm,cdrom,floppy,audio,video,portage"
-PASSWORD=chronos
-CRYPTED_PASSWD=$(perl -e 'print crypt($ARGV[0], "foo")', $PASSWORD)
 
 USEPKG=""
 if [[ $FLAGS_usepkg -eq $FLAGS_TRUE ]]; then
@@ -156,7 +154,7 @@
    # determined by the order in /etc/passwd. Let's put ourselves on top
    # of the file.
    bare_chroot useradd -o -G ${DEFGROUPS} -g eng -u ${SUDO_UID} -s \
-     /bin/bash -m -c "${FULLNAME}" -p ${CRYPTED_PASSWD} ${SUDO_USER}
+     /bin/bash -m -c "${FULLNAME}" ${SUDO_USER}
    # Because passwd generally isn't sorted and the entry ended up at the
    # bottom, it is safe to just take it and move it to top instead.
    sed -e '1{h;d};$!{H;d};$G' -i "${FLAGS_chroot}/etc/passwd"