No description
Find a file
Joe b61f174db9 Move CI workflow to Forgejo and remove GitHub workflows
- Move package.yml workflow to .forgejo/workflows/ci.yml
- Remove all GitHub-specific workflow files
- Configure for Forgejo CI/CD pipeline
- Maintain comprehensive debian-forge packaging workflow
2025-08-29 17:32:58 -07:00
.devcontainer Add support for using librepo to download packages 2025-01-14 08:19:16 +01:00
.forgejo/workflows Move CI workflow to Forgejo and remove GitHub workflows 2025-08-29 17:32:58 -07:00
assemblers Fix pylint issue E0606: possibly-used-before-assignment 2024-11-25 10:09:18 +01:00
config Add dynamic Debian version detection system (Fedora-style) 2025-08-26 16:08:44 -07:00
data devices: add custom udev rule inhibitor mechanism 2021-12-09 00:44:21 +00:00
devices devices/loopback: add read-only option 2024-09-18 08:54:34 +02:00
docs Implement Fedora-style dynamic runner system for Debian variants 2025-08-26 16:11:44 -07:00
inputs Fix pylint issue E0606: possibly-used-before-assignment 2024-11-25 10:09:18 +01:00
mounts mounts: implement new org.osbuild.bind mount 2024-04-11 17:40:21 +02:00
osbuild Add dynamic Debian version detection system (Fedora-style) 2025-08-26 16:08:44 -07:00
runners Implement Fedora-style dynamic runner system for Debian variants 2025-08-26 16:11:44 -07:00
schemas schema: metadata at the top level 2024-10-29 08:24:33 +01:00
schutzbot tests/CI: Fix RHEL 10 mock config creation and repo URLs 2025-07-01 17:53:44 +02:00
selinux SELinux: apply osbuild_exec_t to /usr/bin/osbuild-image-info 2024-12-18 12:50:32 +01:00
sources source/containers-storage: error message 2025-06-16 09:22:28 -07:00
stages Add dynamic apt-cacher-ng configuration system for collaborators 2025-08-26 15:52:43 -07:00
test Complete file structure reorganization for 1:1 osbuild compatibility 2025-08-26 15:38:59 -07:00
tools Implement Fedora-style dynamic runner system for Debian variants 2025-08-26 16:11:44 -07:00
.bandit lint: provide bandit configuration 2023-04-23 21:44:46 +02:00
.editorconfig editorconfig: include markdown specifications 2020-10-23 16:29:50 +02:00
.git-blame-ignore-revs git: ignore isort commit 2022-09-12 13:32:51 +02:00
.gitignore Add dynamic apt-cacher-ng configuration system for collaborators 2025-08-26 15:52:43 -07:00
.gitlab-ci.yml tests/CI: Upgrade rhel 9.5 GA to 9.6 GA and add 10.0 GA 2025-07-01 17:53:44 +02:00
.mypy.ini osbuild/solver/dnf.py: Add support for DNF variables for osbuild repos 2025-08-13 15:42:00 +02:00
.packit.yaml Packit: build RPMs in COPR for c10s and c9s on all arches 2024-06-17 11:43:40 +02:00
.ruff.toml meta: rename -meta.json to .meta.json 2024-03-14 13:37:57 +01:00
CODEOWNERS CODEOWNERS: Assign ownership for CoreOS-related files 2024-12-05 09:28:59 +01:00
Containerfile Did stuff 2025-08-26 11:52:32 -07:00
LICENSE Revert "Fill in the license template" 2019-11-18 12:23:10 +01:00
Makefile Makefile: run tox parallel without the spinner 2024-08-07 17:27:35 +02:00
osbuild.spec spec: buildrequire setuptools 2025-08-21 15:56:02 -07:00
README.md Updated readme 2025-08-26 17:00:30 -07:00
requirements.txt Did stuff 2025-08-26 11:52:32 -07:00
samples samples: replace with symlink to test data 2021-07-12 18:44:50 +02:00
Schutzfile Schutzfile: Update images dependency ref to latest 2025-08-18 13:11:12 +02:00
setup.cfg Lint/pylint: disable too-many-positional-arguments check 2024-11-25 10:09:18 +01:00
setup.py Post release version bump 2025-08-13 08:37:21 +00:00
todo.txt Update todo.txt: Mark reorganization as complete 2025-08-26 15:39:40 -07:00
tox.ini tox: Limit it to virtualenv < 20.22.0 for py36 support 2025-06-17 00:21:21 -07:00

OSBuild Debian Forge

A fork of osbuild, but for debian. Try to be as close as 1:1 os possible

Supports Debian 13+ (Trixie and newer)

Build-Pipelines for Operating System Artifacts

OSBuild is a pipeline-based build system for operating system artifacts. It defines a universal pipeline description and a build system to execute them, producing artifacts like operating system images, working towards an image build pipeline that is more comprehensible, reproducible, and extendable.

See the osbuild(1) man-page for details on how to run osbuild, the definition of the pipeline description, and more.

Project

Principles

  1. OSBuild stages are never broken, only deprecated. The same manifest should always produce the same output.
  2. OSBuild stages should be explicit whenever possible instead of e.g. relying on the state of the tree.
  3. Pipelines are independent, so the tree is expected to be empty at the beginning of each.
  4. Manifests are expected to be machine-generated, so OSBuild has no convenience functions to support manually created manifests.
  5. The build environment is confined against accidental misuse, but this should not be considered a security boundary.
  6. OSBuild may only use Python language features supported by the oldest target distribution.

Contributing

Please refer to the developer guide to learn about our workflow, code style and more.

Requirements

The requirements for this project are:

  • bubblewrap >= 0.4.0
  • python >= 3.6

Additionally, the built-in stages require:

  • bash >= 5.0
  • coreutils >= 8.31
  • curl >= 7.68
  • qemu-img >= 4.2.0
  • debootstrap >= 1.0.0
  • mmdebstrap >= 1.0.0
  • tar >= 1.32
  • util-linux >= 235
  • skopeo
  • ostree >= 2023.1

At build-time, the following software is required:

  • python-docutils >= 0.13
  • pkg-config >= 0.29

Testing requires additional software:

  • pytest

Debian Support

Debian Forge supports Debian 13+ (Trixie and newer):

  • trixie (Debian 13) - STABLE - Recommended for production
  • forky (Debian 14) - TESTING - For development and testing
  • sid (Debian Unstable) - UNSTABLE - Use with caution

Older releases are not supported:

  • bookworm (Debian 12) - OLDSTABLE - Limited compatibility
  • bullseye (Debian 11) - OLDOLDSTABLE - Not supported

Dynamic Runner System

Debian Forge automatically detects your distribution and uses the appropriate runner, just like Fedora OSBuild:

# OSBuild automatically detects and uses the right runner
$ ls -la runners/
org.osbuild.debian13*    # Debian 13 (Trixie) runner
org.osbuild.debian14*    # Debian 14 (Forky) runner  
org.osbuild.ubuntu2504*  # Ubuntu 25.04 (Plucky Puffin) runner
org.osbuild.ubuntu2404*  # Ubuntu 24.04 (Noble Numbat) runner
org.osbuild.debian-based* # Generic Debian-based runner
org.osbuild.linux*       # Generic Linux runner

Automatic Setup

# Setup the appropriate runner for your system
$ ./tools/debian-runner-setup

# List available runners
$ ./tools/debian-runner-setup list

Supported Distributions

  • Debian: Trixie (13), Forky (14), Sid (unstable)
  • Ubuntu: 24.04 LTS, 25.04 LTS, and future releases
  • Other: Linux Mint, Pop!_OS, Elementary OS, Zorin OS, Kali Linux, Parrot OS

Running locally

The main binary is safe to run on your development machine with:

python3 -m osbuild --libdir .

To build an image:

python3 -m osbuild --libdir . ./test/test-debian-manifest.json

Every osbuild run uses a cache for downloaded files (sources) and, optionally, checkpoints of artifacts built by stages and pipelines. By default, this is kept in .osbuild (in the current working directory). The location of this directory can be specified using the --cache option.

For more information about the options and arguments, read man pages.

Build

Osbuild is a python script so it is not compiled. To verify changes made to the code use included makefile rules:

  • make lint to run linter on top of the code
  • make test-all to run base set of tests
  • sudo make test-run to run extended set of tests (takes long time)

Also keep in mind that some tests require those prerequisites, otherwise they are skipped

sudo apt install -y debootstrap mmdebstrap sbuild schroot ostree qemu-utils

Installation

Installing osbuild requires to not only install the osbuild module, but also additional artifacts such as tools (i.e: osbuild-mpp) sources, stages, schemas and SELinux policies.

For this reason, doing an installation from source is not trivial and the easier way to install it is to create the set of RPMs that contain all these components.

This can be done with the rpm make target, i.e:

sudo dnf builddep osbuild.spec
make rpm

A set of RPMs will be created in the ./rpmbuild/RPMS/noarch/ directory and can be installed in the system using the distribution package manager, i.e:

sudo dnf install ./rpmbuild/RPMS/noarch/*.rpm

Repository

License

  • Apache-2.0
  • See LICENSE file for details.