Update configuring date and timezone.md#489
Conversation
tormath1
left a comment
There was a problem hiding this comment.
Thanks and sorry for the delay here, I added some comments. :)
| - path: /etc/localtime | ||
| target: ../usr/share/zoneinfo/America/New_York | ||
| ``` | ||
| `"overwrite": true` |
There was a problem hiding this comment.
What' s the intention here?
There was a problem hiding this comment.
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.
| <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> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
|
@PackElend Could you please sign the commits so that the DCO task is successful? |
There was a problem hiding this comment.
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/localtimefrom the host to keep container time zones consistent. - Add a new link reference for the
localtimeman page (and an issue comment reference).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| 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` |
| <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 |
| ## 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 | ||
|
|
| volumeMounts: | ||
| - name: localtime | ||
| mountPath: /etc/localtime | ||
| volumes: | ||
| - name: localtime | ||
| hostPath: | ||
| path: /etc/localtime |
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>
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>
eb567b8 to
5a6834d
Compare
Updating according to Copilot's comments: - https://github.com/flatcar/flatcar-website/pull/489/changes#r3486735773 - https://github.com/flatcar/flatcar-website/pull/489/changes#r3486735789 - https://github.com/flatcar/flatcar-website/pull/489/changes#r3486735802 - https://github.com/flatcar/flatcar-website/pull/489/changes#r3486735813 - https://github.com/flatcar/flatcar-website/pull/489/changes#r3486735816 - https://github.com/flatcar/flatcar-website/pull/489/changes#r3486735823 Signed-off-by: Stefan Müller <stefan.mueller.83@gmail.com>
| `overwrite: true` is optinal to force recreation if `/etc/localtime` already exists. | ||
| <details> | ||
|
|
||
| <summary>Remark to other references </summary> |
| 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. |
|
|
||
| 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: |
| 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>
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>
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>
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>
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)