Thu Aug 31, 2017 3:45 am
I'm writing a script to edit some files, like authorized_keys, wpa_supplicant.conf, etc. Some of this files may be generated only after the first boot. I thought of using the script to run QEMU to make the first boot on raspbian and then turn it off and continue editing the files, but i'd be cpu intensive and not necessary, there must be an easier way. What is the default behavior of debian (raspbian) when it boots and tries to create the files? Will it overwrite mine or just leave them there and not make anything? If so, I could just place the files pre-boot and it'd work. Can I also generate the SSH keys in the script before the first boot?