Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-design config_timezone for TZ + localtime handling + drop config_time #30

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

mika
Copy link
Member

@mika mika commented Jan 30, 2025

The file /etc/default/rcS no longer exists, and also /etc/adjtime doesn't necessarily exist any longer.

Instead, even /etc/timezone is gone nowadays, see e.g. systemd/systemd#35413

We don't need to support the bootoption "utc" any longer, as this is the default nowadays.

Don't invoke hwlock at all anymore, instead set /etc/localtime to the timezone requested via boot option tz=..., if set. Accordingly drop Depends on util-linux-extra, which we no longer need now with the hwclock removal. And use timedatectl set-local-rtc 1 as interface for /etc/adjtime with its localtime handling.

Drop $CONFIG_TIME + config_time with this cleanup and handle all of the remaining timezone handling within $CONFIG_TIMEZONE + config_timezone.

Thanks to @zeha and @jkirk for the debugging session, and clarifying this.

The file /etc/default/rcS no longer exists, and also /etc/adjtime
doesn't necessarily exist any longer.

Instead, even /etc/timezone is gone nowadays, see e.g.
systemd/systemd#35413

We don't need to support the bootoption "utc" any longer, as this is the
default nowadays.

Don't invoke hwlock at all anymore, instead set /etc/localtime to the
timezone requested via boot option tz=..., if set.  Accordingly drop
Depends on util-linux-extra, which we no longer need now with the
hwclock removal. And use `timedatectl set-local-rtc 1` as interface for
/etc/adjtime with its localtime handling.

Drop $CONFIG_TIME + config_time with this cleanup and handle all of the
remaining timezone handling within $CONFIG_TIMEZONE + config_timezone.

Thanks to Chris and Darsha for the debugging session, and clarifying this.
@jkirk
Copy link
Contributor

jkirk commented Jan 30, 2025

JFTR, here are some older notes on this issue: grml/grml#61 + grml/grml-live@7f304b5

@mika mika merged commit 24e4848 into master Jan 30, 2025
2 checks passed
@mika mika deleted the mika/timezone branch January 30, 2025 00:24
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.

3 participants