public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Fabian Grünbichler" <f.gruenbichler@proxmox.com>
To: pve-devel@lists.proxmox.com, Stefan Mayr <stefan@mayr-stefan.de>
Subject: applied: [PATCH container v2 2/4] Fix #7175: replace timezone handling with systemd timedatectl
Date: Mon, 16 Mar 2026 10:36:26 +0100	[thread overview]
Message-ID: <1773653635.fnzh8ddw75.astroid@yuna.none> (raw)
In-Reply-To: <20260125210151.1151-3-stefan@mayr-stefan.de>

applied with d/control bump

On January 25, 2026 10:01 pm, Stefan Mayr wrote:
> Usage of /etc/timezone is deprecated. The tzdata maintainers recommend
> switching to timedatectl.
> 
> This changes the use of INotify to the Systemd module for timezone
> settings.
> 
> Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
> Suggested-by: Maximiliano Sandroval <m.sandoval@proxmox.com>
> Signed-off-by: Stefan Mayr <stefan@mayr-stefan.de>
> ---
>  src/PVE/LXC/Setup.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/PVE/LXC/Setup.pm b/src/PVE/LXC/Setup.pm
> index 113093d..9dfe766 100644
> --- a/src/PVE/LXC/Setup.pm
> +++ b/src/PVE/LXC/Setup.pm
> @@ -130,7 +130,7 @@ sub new {
>  
>      # Cache some host files we need access to:
>      $plugin->{host_resolv_conf} = PVE::INotify::read_file('resolvconf');
> -    $plugin->{host_timezone} = PVE::INotify::read_file('timezone');
> +    $plugin->{host_timezone} = PVE::Systemd::get_timezone();
>  
>      abs_path('/etc/localtime') =~ m|^(/.+)| or die "invalid /etc/localtime\n"; # untaint
>      $plugin->{host_localtime} = $1;
> -- 
> 2.34.1
> 
> 
> 




  reply	other threads:[~2026-03-16  9:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-25 21:01 [pve-devel] [PATCH common, container, manager and pmg-api v2 0/4] " Stefan Mayr
2026-01-25 21:01 ` [pve-devel] [PATCH manager v2 1/4] " Stefan Mayr
2026-03-16  9:36   ` applied: " Fabian Grünbichler
2026-01-25 21:01 ` [pve-devel] [PATCH container v2 2/4] " Stefan Mayr
2026-03-16  9:36   ` Fabian Grünbichler [this message]
2026-01-25 21:01 ` [pve-devel] [PATCH pmg-api v2 3/4] " Stefan Mayr
2026-03-16 10:10   ` applied: " Stoiko Ivanov
2026-01-25 21:01 ` [pve-devel] [PATCH common v2 4/4] " Stefan Mayr
2026-02-18 19:53 ` [pve-devel] [PATCH common, container, manager and pmg-api v2 0/4] " Stefan Mayr
2026-02-19  8:13   ` Fabian Grünbichler
2026-02-20 11:48 ` Stoiko Ivanov
2026-02-22 11:02   ` [PATCH common v3 0/2] " Stefan Mayr
2026-02-23 10:02     ` Stoiko Ivanov
2026-02-22 11:02   ` [PATCH common v3 1/2] " Stefan Mayr
2026-02-25 10:32     ` partially-applied: " Fabian Grünbichler
2026-02-22 11:02   ` [PATCH common v3 2/2] " Stefan Mayr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1773653635.fnzh8ddw75.astroid@yuna.none \
    --to=f.gruenbichler@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=stefan@mayr-stefan.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal