From 62ab9caead77c65616b87d00b9819bd4c167f684 Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Mon, 24 Aug 2026 14:34:21 -0300 Subject: [PATCH] fix(xcat-core): default Subiquity installnic to match-by-MAC when unset Resolve installnic with the non-fatal #TABLEBLANKOKAY# token so an absent noderes.installnic renders blank instead of aborting xnba generation, and treat an empty installnic exactly like "mac": match the interface by its boot MAC address and do not rename it. That is the same default EL and SLES already get, since their statefull templates never reference installnic at all. Nodes that do set noderes.installnic are unaffected -- the set-name branch is unchanged. The diskless/netboot path never referenced installnic and is untouched. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- xCAT-server/share/xcat/install/ubuntu/compute.subiquity.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/install/ubuntu/compute.subiquity.tmpl b/xCAT-server/share/xcat/install/ubuntu/compute.subiquity.tmpl index 31a978cbc..2740dec81 100644 --- a/xCAT-server/share/xcat/install/ubuntu/compute.subiquity.tmpl +++ b/xCAT-server/share/xcat/install/ubuntu/compute.subiquity.tmpl @@ -74,11 +74,11 @@ autoinstall: - mkdir -p /target/var/log/xcat/ - '{ cat /tmp/pre-install.log >> /target/var/log/xcat/xcat.log; - installnic="#TABLE:noderes:$NODE:installnic#"; + installnic="#TABLEBLANKOKAY:noderes:$NODE:installnic#"; installmac="#TABLE:mac:$NODE:mac#"; installmac="$(printf ''%s'' "${installmac}" | cut -d''|'' -f1 | cut -d''!'' -f1 | tr ''A-F'' ''a-f'')"; mkdir -p /target/etc/netplan; - if [ "${installnic}" = "mac" ]; then + if [ "${installnic}" = "mac" ] || [ -z "${installnic}" ]; then printf ''%s\n'' "network:" " version: 2" " ethernets:" " xcat-install:" " match:" " macaddress: \"${installmac}\"" " dhcp4: true" >/target/etc/netplan/00-xcat-install.yaml; else printf ''%s\n'' "network:" " version: 2" " ethernets:" " xcat-install:" " match:" " macaddress: \"${installmac}\"" " set-name: ${installnic}" " dhcp4: true" >/target/etc/netplan/00-xcat-install.yaml;