2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-23 10:52:29 +00:00
Files
xcat-core/xCAT-server/share/xcat/mypostscript
Daniel Hilst a5cd542a5d fix(xcat-core): configdhcpv6duid writes a DUID that the reservation does not hold
mypostscript assigned DHCP6DUID and did not export it, so configdhcpv6duid, which runs as a
child process, never saw mac.duid and wrote the firmware DUID-UUID. The script also rejected
ll, which makedhcp accepts and selects by default on ppc64le. It read the SMBIOS UUID before
the attribute, so a missing or nil UUID ended the script although a literal DUID needs none.
And it wrote no systemd-networkd configuration for a DUID that is not a DUID-UUID.

mypostscript now exports DHCP6DUID. The script reads the attribute first, builds the DUID-LL
from the first mac.mac address for ll and for an unset value on ppc64le, reads the UUID only
for firmware and canonical, and gives systemd-networkd the type of every DUID through
DUIDType and the rest through DUIDRawData.

postscript_dhcpv6_duid.bats fails without this change.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-11-06 17:32:00 -03:00
..