Skip to content

Commit

Permalink
Merge branch 'main' into mount-devtmpfs
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters authored Mar 6, 2024
2 parents d7d2c06 + 741b128 commit 4e8efba
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions devel/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,18 @@ qemu-img convert -O qcow disk.raw disk.qcow2
```

You can then follow the [instructions in the README](README.md#running-the-resulting-qcow2-file-on-linux-x86_64) to test that the image boots successfully.

## Live debugging

First, run bootc-image-builder with `--entrypoint bash` to ensure you have persistent state.

Inside a shell inside the container, use `bootc-image-builder manifest quay.io/exampleos/someimage:latest > /tmp/manifest.json`
to get a manifest.

Then you can invoke osbuild directly, like this:

```shell
osbuild --cache-max-size unlimited --export qcow2 --store /store --output-directory /output /tmp/manifest.json
```

This can further be useful in combination with osbuild options like `--break` to stop at a particular stage.
1 change: 1 addition & 0 deletions test/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ def test_image_build_without_se_linux_denials(image_type):
f"denials in log {image_type.journal_output}"


@pytest.mark.skip(reason="see https://github.com/osbuild/bootc-image-builder/issues/233")
@pytest.mark.skipif(platform.system() != "Linux", reason="boot test only runs on linux right now")
@pytest.mark.parametrize("image_type", gen_testcases("anaconda-iso"), indirect=["image_type"])
def test_iso_installs(image_type):
Expand Down

0 comments on commit 4e8efba

Please sign in to comment.