1
0

podman compatibility

This commit is contained in:
dump_stack() 2023-01-29 20:41:33 +00:00
parent 92706c68fb
commit 6e1216201e
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -343,8 +343,11 @@ func copyKernels(name string) (err error) {
what := r.FindAll(rawOutput, -1) what := r.FindAll(rawOutput, -1)
for _, w := range what { for _, w := range what {
containerID = strings.Fields(string(w))[0] containerID = strings.Fields(string(w))[0]
_, err = exec.Command("which", "podman").CombinedOutput()
if err != nil {
break break
} }
}
usr, err := user.Current() usr, err := user.Current()
if err != nil { if err != nil {