We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 497e779 commit be91d2eCopy full SHA for be91d2e
mantle/platform/qemu.go
@@ -282,8 +282,8 @@ func setupIgnition(confPath string, diskImagePath string) error {
282
// Set guestfish backend to direct in order to avoid libvirt as backend.
283
// Using libvirt can lead to permission denied issues if it does not have access
284
// rights to the qcow image
285
- os.Setenv("LIBGUESTFS_BACKEND", "direct")
286
cmd := exec.Command("guestfish", "--listen", "-a", diskImagePath)
+ cmd.Env = append(os.Environ(), "LIBGUESTFS_BACKEND=direct")
287
stdout, err := cmd.StdoutPipe()
288
if err != nil {
289
return fmt.Errorf("getting stdout pipe: %v", err)
0 commit comments