mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-23 02:42:17 +00:00
a5cd542a5d
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>