From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 9D5B51FF0E4 for ; Tue, 14 Jul 2026 12:54:33 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 31EC521470; Tue, 14 Jul 2026 12:54:32 +0200 (CEST) From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= To: pbs-devel@lists.proxmox.com, Maximiliano Sandoval Subject: applied-series: [PATCH backup 1/2] fix #7175: api: time: use timedatectl instead of /etc/timezone Date: Tue, 14 Jul 2026 12:53:35 +0200 Message-ID: <178402620782.364806.5096013624880296524.b4-ty@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260618074926.1464533-1-m.sandoval@proxmox.com> References: <20260618074926.1464533-1-m.sandoval@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1784026422284 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.206 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_LOW -0.7 Sender listed at https://www.dnswl.org/, low trust 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: MCOIPWKORHDFJUVXOTWENMPI7ZVCRXA5 X-Message-ID-Hash: MCOIPWKORHDFJUVXOTWENMPI7ZVCRXA5 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 Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Thu, 18 Jun 2026 09:49:00 +0200, Maximiliano Sandoval wrote: > 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 > > [...] Applied with a small follow up that removes the manual re-implementation of run_command, thanks! [1/2] fix #7175: api: time: use timedatectl instead of /etc/timezone commit: 3a5081f4ae33b2eb6235bb1a0e65a81f5569ab7f [2/2] api: time: rename read_etc_localtime commit: 2b4b2179118f194c1fb4956208f905e5c245287a Best regards, -- Fabian Grünbichler