all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH] run-env: fallback to all zero mac for interfaces without
@ 2025-07-11  8:03 Christian Ebner
  2025-07-11  8:06 ` Christian Ebner
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Christian Ebner @ 2025-07-11  8:03 UTC (permalink / raw)
  To: pve-devel

The installer assumes to have a valid mac address for all interfaces
as provided by the runtime env json file. Deserialization will fail
if this is not the case.

In some cases, the interface might however not provide a valid MAC
address, for example the WWAN module without any SIM installed on
some laptops.

Fix this by defaulting to an all zero MAC address if non is detected.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
Please note: Untested, but I can test it based on an iso installer on
affected hardware

 Proxmox/Install/RunEnv.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Proxmox/Install/RunEnv.pm b/Proxmox/Install/RunEnv.pm
index e4f0eb0..d7ee258 100644
--- a/Proxmox/Install/RunEnv.pm
+++ b/Proxmox/Install/RunEnv.pm
@@ -110,7 +110,7 @@ my sub query_netdevs : prototype() {
         $ifs->{$name} = {
             index => $index,
             name => $name,
-            mac => $mac,
+            mac => $mac // '00:00:00:00:00:00',
             state => uc($state),
         };
         $ifs->{$name}->{addresses} = \@valid_addrs if @valid_addrs;
-- 
2.47.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-07-11 10:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-11  8:03 [pve-devel] [PATCH] run-env: fallback to all zero mac for interfaces without Christian Ebner
2025-07-11  8:06 ` Christian Ebner
2025-07-11  8:27 ` Gabriel Goller
2025-07-11  8:39   ` Christian Ebner
2025-07-11  9:14   ` Thomas Lamprecht
2025-07-11  9:47     ` Christoph Heiss
2025-07-11 10:03       ` Christian Ebner
2025-07-11 10:25         ` Thomas Lamprecht
2025-07-11 10:31           ` Christian Ebner
2025-07-11  9:01 ` [pve-devel] superseded: " Christian Ebner

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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal