Skip to content

Instantly share code, notes, and snippets.

View thozza's full-sized avatar
☁️
working in the cloud

Tomáš Hozza thozza

☁️
working in the cloud
  • Czechia
  • 19:37 (UTC +02:00)
View GitHub Profile
@thozza
thozza / debug-script.sh
Created November 16, 2022 15:52
osbuild-composer worker upgrade / downgrade issue reproducer
#!/usr/bin/bash
source /etc/os-release
# well known setup
systemctl disable --now osbuild-composer.socket
systemctl stop 'osbuild*.socket' 'osbuild*.service'
# ensure the latest osbuild-composer is installed
dnf install -y osbuild-composer composer-cli
@thozza
thozza / dnf-depsolving.py
Last active March 30, 2022 12:31
Depsolving multiple transactions in a row using DNF (version 2)
#!/usr/bin/python3
import os
import tempfile
import dnf
import pprint
DEPSOLVE_REQ = {
@thozza
thozza / dnf-depsolving.py
Last active March 21, 2022 11:51
Depsolving two transactions in a row using DNF
#!/usr/bin/python3
import os
import tempfile
import dnf
import pprint
REPOS = [

Stage unit testing

To update a stage unit test, modify appropriate test/data/stages/<stage_suffix>/b.mpp.json.

Regenerate testing manifests:

make test-data

Running osbuild stage test only for a specific stage:

Keybase proof

I hereby claim:

  • I am thozza on github.
  • I am thozza (https://keybase.io/thozza) on keybase.
  • I have a public key ASB2rN-t73Ph_Gc4FIguOgflw0MNpp56qd1urphC5PiMGgo

To claim this, I am signing this object: