osbuild: 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 will be printed. This hopefully helps to track down the root cause of https://github.com/podman-desktop/extension-bootc/issues/1475
This commit is contained in:
parent
ba0d9df68e
commit
f52aeb0676
1 changed files with 3 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ from .inputs import Input, InputManager
|
|||
from .mounts import Mount, MountManager
|
||||
from .objectstore import ObjectStore
|
||||
from .sources import Source
|
||||
from .util import osrelease
|
||||
from .util import experimentalflags, osrelease
|
||||
|
||||
DEFAULT_CAPABILITIES = {
|
||||
"CAP_AUDIT_WRITE",
|
||||
|
|
@ -254,6 +254,8 @@ class Stage:
|
|||
extra_env = {}
|
||||
if self.source_epoch is not None:
|
||||
extra_env["SOURCE_DATE_EPOCH"] = str(self.source_epoch)
|
||||
if experimentalflags.get_bool("debug-qemu-user"):
|
||||
extra_env["QEMU_LOG"] = "+unimp"
|
||||
|
||||
debug_shell = debug_break in ('*', self.name, self.id)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue