hypriot / flash

Command line script to flash SD card images of any kind
MIT License
1k stars 176 forks source link

Copy custom file to /boot when flashing #145

Closed flochtililoch closed 5 years ago

flochtililoch commented 5 years ago

Adds the ability to specify a custom file to be copied to the boot partition when flashing. I use this to write some configuration (docker-compose files and bash scripts) used for my custom host initialization.

StefanScherer commented 5 years ago

Looks interesting. Will try it out once I‘m back to a machine with SD card slot.

StefanScherer commented 5 years ago

LGTM. Nice idea

StefanScherer commented 5 years ago

I have released 2.3.0 with that new feature 🎉

flochtililoch commented 5 years ago

One caveat to note with this solution, is that the maximum file size that can be copied over is the size that's available on the /boot partition, which in my testing isn't much (36MB available on a recent flash). While this is plenty enough for simple configuration files, this can become a problem if the goal is to install larger data set.