setting timezone for installed system
Bug #1482882 reported by
Nobuto Murata
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Confirmed
|
Low
|
Unassigned |
Bug Description
It would be nice if curtin had a feature to set timezone in curtin_userdata.
A workaround for Ubuntu system would be setting the late command below, but it would be nice if we could set timezone config in userdata with an os-independent way.
late_commands:
timezone: curtin in-target -- sh -c "echo Asia/Tokyo > /etc/timezone && dpkg-reconfigure -fnoninteractive tzdata"
this can also be done via user-data. or if we get vendor-data in maas, that would work too.
then cloud-init will set the timezone on first boot.
that said, i'm not opposed to something that reads config and does this.