* [PATCH container] tools: drop fallback to old device list for passthrough mounts
@ 2026-10-14 9:32 Filip Schauer
0 siblings, 0 replies; only message in thread
From: Filip Schauer @ 2026-10-14 9:32 UTC (permalink / raw)
To: pve-devel
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-14 9:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-14 9:32 [PATCH container] tools: drop fallback to old device list for passthrough mounts Filip Schauer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.