From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 8510F1FF141 for ; Mon, 16 Mar 2026 10:36:23 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8124F13994; Mon, 16 Mar 2026 10:36:35 +0100 (CET) Date: Mon, 16 Mar 2026 10:36:26 +0100 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= Subject: applied: [PATCH container v2 2/4] Fix #7175: replace timezone handling with systemd timedatectl To: pve-devel@lists.proxmox.com, Stefan Mayr References: <20260125210151.1151-1-stefan@mayr-stefan.de> <20260125210151.1151-3-stefan@mayr-stefan.de> In-Reply-To: <20260125210151.1151-3-stefan@mayr-stefan.de> MIME-Version: 1.0 User-Agent: astroid/0.17.0 (https://github.com/astroidmail/astroid) Message-Id: <1773653635.fnzh8ddw75.astroid@yuna.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1773653749540 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.054 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_MSPIKE_H2 0.001 Average reputation (+2) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: 6ARA5JE3VQXILNQRF2MODZCQ6ISGO6TU X-Message-ID-Hash: 6ARA5JE3VQXILNQRF2MODZCQ6ISGO6TU X-MailFrom: f.gruenbichler@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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. >=20 > This changes the use of INotify to the Systemd module for timezone > settings. >=20 > Suggested-by: Fabian Gr=C3=BCnbichler > Suggested-by: Maximiliano Sandroval > Signed-off-by: Stefan Mayr > --- > src/PVE/LXC/Setup.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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 { > =20 > # Cache some host files we need access to: > $plugin->{host_resolv_conf} =3D PVE::INotify::read_file('resolvconf'= ); > - $plugin->{host_timezone} =3D PVE::INotify::read_file('timezone'); > + $plugin->{host_timezone} =3D PVE::Systemd::get_timezone(); > =20 > abs_path('/etc/localtime') =3D~ m|^(/.+)| or die "invalid /etc/local= time\n"; # untaint > $plugin->{host_localtime} =3D $1; > --=20 > 2.34.1 >=20 >=20 >=20