From: Filip Schauer <f.schauer@proxmox.com>
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 [thread overview]
Message-ID: <20261014093257.38501-1-f.schauer@proxmox.com> (raw)
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 <f.schauer@proxmox.com>
---
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
reply other threads:[~2026-10-14 9:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261014093257.38501-1-f.schauer@proxmox.com \
--to=f.schauer@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/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