Skip to content

Commit a68518a

Browse files
committed
bib: add experimental flag debug-qemu-user
This commit adds support for more debug for `qemu-user` options. When settings: ``` $ sudo IMAGE_BUILDER_EXPERIMENAL=debug-qemu-user bootc-image-builder ... ``` extra debug from qemu-user will be printed. This hopefully helps to track down the root cause of podman-desktop/extension-bootc#1475
1 parent ed98bea commit a68518a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bib/cmd/bootc-image-builder/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"github.com/osbuild/images/pkg/cloud/awscloud"
2323
"github.com/osbuild/images/pkg/container"
2424
"github.com/osbuild/images/pkg/dnfjson"
25+
"github.com/osbuild/images/pkg/experimentalflags"
2526
"github.com/osbuild/images/pkg/manifest"
2627
"github.com/osbuild/images/pkg/osbuild"
2728
"github.com/osbuild/images/pkg/rpmmd"
@@ -462,6 +463,9 @@ func cmdBuild(cmd *cobra.Command, args []string) error {
462463
osbuildEnv = append(osbuildEnv, envVars...)
463464
}
464465

466+
if experimentalflags.Bool("debug-qemu-user") {
467+
osbuildEnv = append(osbuildEnv, "OBSBUILD_EXPERIMENAL=debug-qemu-user")
468+
}
465469
osbuildOpts := progress.OSBuildOptions{
466470
StoreDir: osbuildStore,
467471
OutputDir: outputDir,

0 commit comments

Comments
 (0)