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 596991FF13F for ; Thu, 18 Jun 2026 09:51:13 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 036CCD3B1; Thu, 18 Jun 2026 09:51:13 +0200 (CEST) From: Maximiliano Sandoval To: pbs-devel@lists.proxmox.com Subject: Re: [PATCH backup 1/2] fix #7175: api: time: use timedatectl instead of /etc/timezone In-Reply-To: <20260618074926.1464533-1-m.sandoval@proxmox.com> (Maximiliano Sandoval's message of "Thu, 18 Jun 2026 09:49:00 +0200") References: <20260618074926.1464533-1-m.sandoval@proxmox.com> User-Agent: mu4e 1.12.9; emacs 30.1 Date: Thu, 18 Jun 2026 09:51:08 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1781769010774 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.126 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 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: SPTHD2TB2LFHNC3RKNQTZBB4YUESIRI4 X-Message-ID-Hash: SPTHD2TB2LFHNC3RKNQTZBB4YUESIRI4 X-MailFrom: m.sandoval@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 Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Maximiliano Sandoval writes: > The Proxmox Backup Server 4.2 iso does not create /etc/timezone, so we > use timedatectl as recommended at [1]. > > As per timedatectl(1) set-timezone will alter the /etc/localtime > symlink, and we return early on set_timezone() if the command succeeds. > > [1] https://salsa.debian.org/glibc-team/tzdata/-/blob/trixie/debian/README.Debian?ref_type=heads#L54 > > Signed-off-by: Maximiliano Sandoval > > [..] I forgot to mention that this is a continuation of [1]. [1] https://lore.proxmox.com/all/20260125210151.1151-1-stefan@mayr-stefan.de/T/#u -- Maximiliano