From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 0E8321FF0B3 for ; Wed, 14 Oct 2026 11:33:14 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 5E88A213DD; Wed, 14 Oct 2026 11:33:10 +0200 (CEST) From: Filip Schauer To: pve-devel@lists.proxmox.com Subject: [PATCH container] tools: drop fallback to old device list for passthrough mounts Date: Wed, 14 Oct 2026 11:32:28 +0200 Message-ID: <20261014093257.38501-1-f.schauer@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1791970383400 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.414 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_MED -2.3 Sender listed at https://www.dnswl.org/, medium 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: ZL3QS2A54K74AMGLMYVWJCFJZMCL5EQX X-Message-ID-Hash: ZL3QS2A54K74AMGLMYVWJCFJZMCL5EQX X-MailFrom: f.schauer@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: The fallback to /var/lib/lxc/$vmid/devices was originally introduced in ce1976b85361 ("Add device passthrough") as a temporary measure to handle package upgrades occurring between lxc-pve-prestart-hook and lxc-pve-autodev-hook. A new major release has happened since, so remove the fallback. Signed-off-by: Filip Schauer --- src/PVE/LXC/Tools.pm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/PVE/LXC/Tools.pm b/src/PVE/LXC/Tools.pm index ce2467e..3228b2b 100644 --- a/src/PVE/LXC/Tools.pm +++ b/src/PVE/LXC/Tools.pm @@ -122,14 +122,7 @@ sub for_current_passthrough_mounts($&) { my ($vmid, $code) = @_; my $devlist_file = "/var/lib/lxc/$vmid/passthrough/mounts"; - - if (-e $devlist_file) { - for_devices($devlist_file, $vmid, $code); - } else { - # Fallback to the old device list file in case a package upgrade - # occurs between lxc-pve-prestart-hook and now. - for_devices("/var/lib/lxc/$vmid/devices", $vmid, $code); - } + for_devices($devlist_file, $vmid, $code); } sub for_current_passthrough_devices($&) { -- 2.47.3