Fix issue 422 (stage2/01-sys-tweaks/01-run.sh )

https://github.com/RPi-Distro/pi-gen/issues/422
This commit is contained in:
Francis Turner 2020-06-15 08:24:02 +02:00 committed by GitHub
parent 08fc0b9a82
commit d2cf67ec29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,12 @@ for GRP in adm dialout cdrom audio users sudo video games plugdev input gpio spi
done done
EOF EOF
# Add line to replace the username for pi in sudoers.d/010_pi-nopasswd
on_chroot <<EOF
sed "s/pi/$FIRST_USER_NAME/" -i /etc/sudoers.d/010_pi-nopasswd
EOF
# End replace username
on_chroot << EOF on_chroot << EOF
setupcon --force --save-only -v setupcon --force --save-only -v
EOF EOF