You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: strip IPv6 prefix length before constructing host address
Hetzner Robot API returns ServerIPv6Net with prefix length
(e.g. "2a01:4f8:2b04:1ab::/64"). The code appended "1/64"
directly, producing invalid CIDR "2a01:4f8:2b04:1ab::/641/64".
Fix: split on "/" first to get bare prefix, then append "1/64".
Also fixes nodeIPv6 construction which used TrimSuffix("::")
but the string ends with "::/64" not "::".
// Fix EFI boot order — delete non-PXE entries so next boot goes to PXE rescue
537
-
fixClient:=sshrescue.New(serverIP, privateKey)
538
-
iffixErr:=fixClient.Connect(); fixErr==nil {
539
-
_, _=fixClient.Run(`
540
-
if command -v efibootmgr > /dev/null 2>&1; then
541
-
mount -o remount,rw /sys/firmware/efi/efivars 2>/dev/null || \
542
-
mount -t efivarfs efivarfs /sys/firmware/efi/efivars 2>/dev/null || true
543
-
for entry in $(efibootmgr 2>/dev/null | grep '^Boot[0-9A-Fa-f]' | grep -iv 'pxe\|network\|ipv4\|ipv6' | grep -o '^Boot[0-9A-Fa-f]*' | sed 's/Boot//'); do
0 commit comments