hypriot / flash

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

Default timezone #53

Closed fxstein closed 6 years ago

fxstein commented 8 years ago

Right now the default timezone that a flashed image comes up with is Europe/Berlin from /etc/timezone and it seems to be set by /root/firstboot.sh

Might be a good idea to take the default timezone from the Mac/Linux system that the cards are flashed from, as that will often match the systems/cluster one wants to setup.

Could set the timezone after the flashing before unmounting and ejecting the SD card.

StefanScherer commented 8 years ago

Thanks. Marked the idea in device-init repo as well.

StefanScherer commented 6 years ago

We have switched to cloud-init with HypriotOS 1.7.x so please have a look at our latest blog post about using cloud-init or the example /boot/user-data in the latest SD card image. There is a comment how to use/set the time zone.