News for hackers. Stuff that matters.
Re:Raspberry Pi update removes the default user by tzs on Thursday April 07, 2022 @09:41PM (#30952399)
That's great. It would be even greater if userconf.txt could also contain an ssh key after the first line and put that ssh key on the new user.
Re:Raspberry Pi update removes the default user by tssva on Thursday April 07, 2022 @10:43PM (#30952781)
If you enable ssh or configure wifi settings using the Raspberry Pi Imager it creates the shell script firstrun.sh on the fat partition. This script is launched using the systemd.run option set in cmdline.txt. This script will enable the ssh service, copy over wifi settings to the ext4 partition, change cmdline.txt so it is no longer run and then reboot the pi. You could take this script and extend it to do anything you would like including copying over ssh keys.