hypriot/flash

Support multiple user-data?

mrmillers opened this issue · 2 comments

According to cloud-init, multiple user data file could be supplied.
I was trying to do something like this:

flash -d /dev/sda
--userdata user-data.yml \ # user config
--userdata os-init.sh \ # a script to run on start up
image.img

Only last file is copied.

A walk around is create the script with write_files section and invoke it with runcmd section. But this is a little bit inconvenient.

Currently there is a flag to copy additional files to the boot partition. This file can then be invoked in the runcmd section, but you do not need to use write_files for that.

But PRs to support multiple user-data files are also welcome. 😃
Feel free to reopen this issue.