Skip to content

Update configuring date and timezone.md#489

Open
PackElend wants to merge 135 commits into
flatcar:mainfrom
PackElend:Update-configuring-date-and-timezone.md
Open

Update configuring date and timezone.md#489
PackElend wants to merge 135 commits into
flatcar:mainfrom
PackElend:Update-configuring-date-and-timezone.md

Conversation

@PackElend

Copy link
Copy Markdown

Udpate doc to match comments in issue

added description on how configure the timezone from Butane / Ignition on Flatcar

How to use

read flatcar/Flatcar#1836 (comment)

@PackElend
PackElend requested a review from a team as a code owner October 8, 2025 19:02

@tormath1 tormath1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks and sorry for the delay here, I added some comments. :)

Comment thread content/docs/latest/setup/customization/configuring-date-and-timezone.md Outdated
Comment thread content/docs/latest/setup/customization/configuring-date-and-timezone.md Outdated
Comment thread content/docs/latest/setup/customization/configuring-date-and-timezone.md Outdated
Comment thread content/docs/latest/setup/customization/configuring-date-and-timezone.md Outdated
Comment thread content/docs/latest/setup/customization/configuring-date-and-timezone.md Outdated
- path: /etc/localtime
target: ../usr/share/zoneinfo/America/New_York
```
`"overwrite": true`

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What' s the intention here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is necessary if a default time zone has already been set.
I'm not sure exactly, as I use existing examples as templates.

Comment on lines +90 to +97
<details>

<summary>Remark to other references </summary>

If you come accross https://github.com/flatcar/Flatcar/issues/491#issuecomment-908316042 and wondering whether you have to use the fields `"overwrite": true` and `"filesystem": "root"` unlike in Fedora Core OS?
Here is the ansser: https://github.com/flatcar/Flatcar/issues/1836#issuecomment-3175310460

</details>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole thing can be dropped. FCOS is not using Ignition 2 since years now, so no need to mention the overwrite: true / `filesystem: root" difference.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's how the journey began.

If you start googling (or asking AI), you get a mix of old and up-to-date answers.
It's difficult to know if the things in the old examples are still needed or omitted due to other reasons, such as a slight difference in configuration.

I want to clarify things here. It always helps to give some histroical context for users not follwing a project cloelsys to keep track of such hchanges

@robinschneider

Copy link
Copy Markdown
Member

@PackElend Could you please sign the commits so that the DCO task is successful?
You can find the details on how to do this here https://github.com/flatcar/flatcar-website/pull/489/checks?check_run_id=59050067166

Copilot AI review requested due to automatic review settings June 27, 2026 20:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the “Configuring date and time zone” documentation to include guidance for setting the system time zone via Butane/Ignition, and adds a section describing how to share the host’s time zone configuration with containers.

Changes:

  • Add a new “Setting the time zone via Ignition” subsection with a Butane example that symlinks /etc/localtime.
  • Add a new section describing mounting /etc/localtime from the host to keep container time zones consistent.
  • Add a new link reference for the localtime man page (and an issue comment reference).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread content/docs/latest/setup/customization/configuring-date-and-timezone.md Outdated

For example, you can set the time zone to `America/New_York` by using a Butane config like the following:

```shell
- path: /etc/localtime
target: ../usr/share/zoneinfo/America/New_York
```
`"overwrite": true`
Comment on lines +92 to +95
<summary>Remark to other references </summary>

If you come accross https://github.com/flatcar/Flatcar/issues/491#issuecomment-908316042 and wondering whether you have to use the fields `"overwrite": true` and `"filesystem": "root"` unlike in Fedora Core OS?
Here is the ansser: https://github.com/flatcar/Flatcar/issues/1836#issuecomment-3175310460
Comment on lines +101 to +105
## Time synchronization to HOST

To keep in sync with the host's timezone, you can mount the timezone configuration file to Flatcar Container Linux.
You add the following to your mount configuration section

Comment on lines +107 to +113
volumeMounts:
- name: localtime
mountPath: /etc/localtime
volumes:
- name: localtime
hostPath:
path: /etc/localtime
PackElend and others added 22 commits June 27, 2026 20:42
first draft adding

- timezone
- sync timezone with host
- remarks to old config style

Signed-off-by: PackElend <muellerstefan@gmx.net>
Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
Signed-off-by: PackElend <muellerstefan@gmx.net>
The /usr/lib/modules overlay is seemingly mounted too early, preventing
the overlaid files from appearing despite the mount being listed. The
system claims that the mount does not exist when attempting to unmount.

It appears to be racing with systemd-sysext.service, so schedule it to
start after that. This happens after local-fs.target, so run before
sysinit.target instead.

Subsequently running `systemd-sysext refresh` causes the overlay to
become unmounted, but `UpheldBy` automatically mounts it again
immediately afterwards.

Applying mutable mode to /usr might be preferable, but that apparently
requires more work. This will do in the meantime.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
Signed-off-by: PackElend <muellerstefan@gmx.net>
* alpha-4459.0.0
* beta-4426.1.0
* lts-4081.3.6
* stable-4230.2.3

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Signed-off-by: Meerthika <meerthikasrrajendrans@gmail.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Signed-off-by: Meerthika <meerthikasrrajendrans@gmail.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
This change adds the "overlaybd" artifact streaming sysext to the list
of optional system-dependent sysexts. It also adds documentation on how
to use the sysext.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
Signed-off-by: PackElend <muellerstefan@gmx.net>
few fixes

Signed-off-by: PackElend <muellerstefan@gmx.net>
…imezone.md

Correcting a spelling mistake.

Co-authored-by: Mathieu Tortuyaux <mathieu.tortuyaux@gmail.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
…imezone.md

Correcting bad copy from FCOS

Co-authored-by: Mathieu Tortuyaux <mathieu.tortuyaux@gmail.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
…imezone.md

Correcting a spelling mistake.

Co-authored-by: Mathieu Tortuyaux <mathieu.tortuyaux@gmail.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
…imezone.md

Correcting missing ":"

Co-authored-by: Mathieu Tortuyaux <mathieu.tortuyaux@gmail.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
…imezone.md

Correcting wrong language identifier

Co-authored-by: Mathieu Tortuyaux <mathieu.tortuyaux@gmail.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Signed-off-by: PackElend <muellerstefan@gmx.net>
tormath1 and others added 8 commits June 27, 2026 20:43
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
…anged

The wording here suggests that Flatcar extends upstream Ignition to
support cloudsigma, rackspace[-onmetal], and vagrant. This is misleading
at best, as it treats them as the "metal" provider, which does nothing.

The point is that a little code is needed to stop Ignition dying when
the platform is really unsupported. This is now handled through
bootengine rather than Ignition itself.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
supernova isn't even present on PyPI any more. rackspace-novaclient is
just broken.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
The latter are far harder to get working on any platform.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
* It's no longer necessary to create a VDI. VBox can use VMDKs directly.
* Ignition can now be used, albeit with an annoying limitation.
* The OVF avoids the need to configure everything manually.
* CLI-based steps are clearer than GUI-based ones.
* Vagrant VirtualBox support has been dropped from Afterburn.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
This has been tested with the latest version. Let's cover single machine
usage before cluster usage. One should walk before running!

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
@PackElend
PackElend force-pushed the Update-configuring-date-and-timezone.md branch from eb567b8 to 5a6834d Compare June 27, 2026 20:46
Copilot AI review requested due to automatic review settings June 28, 2026 10:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 5 comments.

Comment thread content/docs/latest/setup/customization/configuring-date-and-timezone.md Outdated
`overwrite: true` is optinal to force recreation if `/etc/localtime` already exists.
<details>

<summary>Remark to other references </summary>
Comment on lines +95 to +96
If you come across [this older Ignition v2 example][issuecomment-908316042] and wonder whether you have to use the fields `overwrite: true` and `filesystem: root` (unlike in Fedora CoreOS):
See https://github.com/flatcar/Flatcar/issues/1836#issuecomment-3175310460 for details.
Comment on lines +103 to +105

To keep a container's time zone in sync with the host, you can mount the host's `/etc/localtime` into the container.
Add the following to your mount configuration section:
Comment on lines +108 to +116
volumeMounts:
- name: localtime
mountPath: /etc/localtime
readOnly: true
volumes:
- name: localtime
hostPath:
path: /etc/localtime
type: File
merci Copilot 

Signed-off-by: PackElend <stefan.mueller.83@gmail.com>

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Copilot AI review requested due to automatic review settings June 28, 2026 11:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread content/docs/latest/setup/customization/configuring-date-and-timezone.md Outdated
Comment thread content/docs/latest/setup/customization/configuring-date-and-timezone.md Outdated
thank you Copilot for the suggested changes. All are applied

Signed-off-by: PackElend <stefan.mueller.83@gmail.com>

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: PackElend <muellerstefan@gmx.net>
Copilot AI review requested due to automatic review settings June 28, 2026 18:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread content/docs/latest/setup/customization/configuring-date-and-timezone.md Outdated
Comment thread content/docs/latest/setup/customization/configuring-date-and-timezone.md Outdated
thank you for the suggestion copilot

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: PackElend <3542031+PackElend@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 28, 2026 19:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread content/docs/latest/setup/customization/configuring-date-and-timezone.md Outdated
merci copilot

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: PackElend <3542031+PackElend@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 28, 2026 19:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.