From e53e4440ae214c194029f9c21c645e6e979e9771 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 8 Jul 2022 20:55:24 +0200 Subject: [PATCH] gluon-core: always store primary MAC address in lowercase hex digits (#2579) Depending on the source of the primary MAC address, uppercase digits would be used on some devices. Convert the address to lowercase for consistency. We only change the case for newly configured nodes to avoid changing the node ID and derives MAC addresses for existing installations. --- package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac b/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac index 8e9623ec..5ee492ac 100755 --- a/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac +++ b/package/gluon-core/luasrc/lib/gluon/upgrade/010-primary-mac @@ -147,7 +147,7 @@ for _, matcher in ipairs(primary_addrs) do if platform.match(unpack(match)) then local addr = f() if addr then - sysconfig.primary_mac = addr + sysconfig.primary_mac = addr:lower() return end end