diff --git a/pkg/rke2/rke2_linux.go b/pkg/rke2/rke2_linux.go index b20079f1ae..ab095ff9be 100644 --- a/pkg/rke2/rke2_linux.go +++ b/pkg/rke2/rke2_linux.go @@ -7,10 +7,13 @@ import ( "bytes" "context" "fmt" + "io/fs" "io/ioutil" "net/http" + "os" "os/exec" "path/filepath" + "slices" "strconv" "strings" "time" @@ -535,6 +538,8 @@ func cleanupDataDir(dataDir string) error { } _ := os.RemoveAll(path) }) + + return nil } func getProcessExecutablePaths() ([]string, error) {