spiegel_podman/pkg/machine/hyperv
lstocchi cfa1b51775
fix hyperv ignition cleanup and error handling
this fixes two bugs in Hyper-V VM ignition handling:

1. Changed `err := readAndSplitIgnition()` to
`err = readAndSplitIgnition()` so the deferred cleanup function can
properly detect errors and clean up ignition
2. The function was trying to remove keys with pattern `vm.ElementName + index`, but
the actual keys were created using `"ignition.config." + index` pattern.

It also improve the deletion by calculating in how many parts the ignition file is splitted when being added in the registry and delete just them instead of blidnly iterating through 0-50.

Signed-off-by: lstocchi <lstocchi@redhat.com>
2026-01-21 15:50:17 +01:00
..
vsock remove legacy registry entry 2025-11-20 16:51:47 +01:00
hutil.go prevent starting/stopping legacy Hyper-v machines when not elevated 2026-01-09 08:07:00 +01:00
stubber.go fix hyperv ignition cleanup and error handling 2026-01-21 15:50:17 +01:00
volumes.go hyperv should reuse hvsock registry entries when possible 2025-11-20 16:51:31 +01:00