From c8a035bfc03fabf4384f4e207571d2c81e028b65 2016-03-06 08:25:53 From: Filip Pytloun Date: 2016-03-06 08:25:53 Subject: [PATCH] Fix escaping of adduser --- diff --git a/rpi2-gen-image.sh b/rpi2-gen-image.sh index 42a0b06..2a88c5b 100755 --- a/rpi2-gen-image.sh +++ b/rpi2-gen-image.sh @@ -391,7 +391,7 @@ ENCRYPTED_PASSWORD=`mkpasswd -m sha-512 ${PASSWORD}` # Set up default user if [ "$ENABLE_USER" = true ] ; then - chroot_exec adduser --gecos \"Raspberry PI user\" --add_extra_groups --disabled-password pi + chroot_exec adduser --gecos \"Raspberry\ PI\ user\" --add_extra_groups --disabled-password pi chroot_exec usermod -a -G sudo -p "${ENCRYPTED_PASSWORD}" pi fi