brunp
Posts: 9
Joined: Fri Jan 11, 2019 6:10 pm

Writing a new file to Raspbian image

Tue Jan 22, 2019 5:58 am

I have written a script (rpi_init file) that I am intending on running on first launch of the Raspberry Pi after an image is burned to an SD card. It is referenced from rc.local in /etc/ and rc.local is returned to its original state after the script is run.

I have copied the new file to /boot/ directory and I can see the file within the stage2 folder in the "work" directory. However, after the image is generated, this file is missing. I even placed it in the /etc/ folder, but the new file I want to include in the image is missing?

Am I missing something within the Raspbian image config or perhaps I am missing a step within the export_image scripts?

Please let me know.
Thanks
Paul

Return to “Raspbian”