From 10b1416cebd5aabf8be8f8f0770bd1380430a104 Mon Sep 17 00:00:00 2001 From: Dominik Wombacher Date: Wed, 31 Jul 2024 23:17:41 +0000 Subject: [PATCH] fix: Workaround disable 'check default route during installation' Revert changes: - https://github.com/harvester/harvester-installer/commit/71247f79fac071a6d130d600da797340f28e343d - https://github.com/harvester/harvester-installer/pull/725 Necessary to make installer for image creation functional again. Requires a permanent fix, e.g. a config flag. --- pkg/console/network.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/console/network.go b/pkg/console/network.go index 7e1888e5a..7a1941f2c 100644 --- a/pkg/console/network.go +++ b/pkg/console/network.go @@ -18,6 +18,9 @@ import ( ) func checkDefaultRoute() (bool, error) { + // Workaround for install mode 'image' + return true, nil + routes, err := netlink.RouteList(nil, syscall.AF_INET) if err != nil { logrus.Errorf("Failed to list routes: %s", err.Error())