DEBIAN VERSION UPDATES: - Debian 12 (Bookworm) is now oldstable with outdated OSTree packages - Debian 13 (Trixie) is now stable and recommended for bootc - Debian 14 (Forky) is testing with latest OSTree libraries - Update all Containerfiles to use debian:trixie-slim OSTREE COMPATIBILITY: - Document OSTree version requirements for each Debian release - Add backporting guide for newer OSTree libraries from Forky to Trixie - Explain benefits of newer OSTree (bootupd support, better bootc compatibility) - Update compatibility matrix with current Debian status RECOMMENDATIONS: - Recommend Debian 13 (Trixie) as minimum for production use - Suggest Debian 14 (Forky) for latest OSTree libraries - Provide backporting instructions for Trixie users - Update testing matrix to reflect current Debian releases This addresses the critical issue that Debian 12's OSTree packages are too old for modern bootc/bootupd requirements.
3.5 KiB
Installation
⚠️ CRITICAL SAFETY WARNING ⚠️
bootc installation involves DESTRUCTIVE operations that can WIPE your disk and data!
bootc install to-diskwill DESTROY existing partitions and datagrub-installoperations can CORRUPT your bootloader- Always test on a virtual machine or test hardware first
- Never run on production systems without proper backups
- Use
BOOTC_I_KNOW_THIS_WIPES_MY_DISK=1environment variable to confirm you understand the risks
Base Images
Many users will be more interested in base (container) images for Debian.
Debian
Currently, the Debian bootc project is focused on providing bootc support for Debian-based systems.
For pre-built base images, any Debian derivative can be converted to use bootc. However, since bootc is not yet available as a Debian package, you'll need to compile it from source.
Prerequisites
- Debian 13 (Trixie) or later (recommended)
- Debian 12 (Bookworm) - oldstable, OSTree packages too old
- Debian 14 (Forky) - testing, has newer OSTree libraries
- Systemd as the init system
- Root access for installation
- Development tools and dependencies for compiling bootc
Installation Steps
-
Install build dependencies:
sudo apt update sudo apt install -y build-essential git pkg-config libostree-dev libglib2.0-dev libgpgme-dev libseccomp-dev -
Install runtime dependencies:
sudo apt install -y ostree podman -
Clone and build bootc:
git clone https://github.com/containers/bootc.git cd bootc make sudo make install -
Verify installation:
bootc --version
Converting Existing Debian Systems
Converting an existing Debian system to use bootc requires careful planning:
- Backup your system - This is a major change to how your OS updates work
- Prepare a bootc-compatible base image - This should be based on your current Debian installation
- Test the conversion process - Use a virtual machine or test system first
- Execute the conversion - Follow the bootc conversion guide for Debian
Debian-Specific Considerations
- Source Compilation: Since bootc is not packaged for Debian yet, you'll need to compile from source
- OSTree Version Requirements:
- Debian 12 (Bookworm): OSTree packages too old, not recommended
- Debian 13 (Trixie): Has newer OSTree libraries, recommended for bootc
- Debian 14 (Forky): Has latest OSTree libraries, ideal for bootupd/bootc
- Backporting: Newer OSTree libraries from Forky can be backported to Trixie
- Package Management: bootc works alongside
aptfor application packages while managing the base OS through container images - Configuration: System configuration follows Debian conventions with
/etcfor machine-local settings - Services: systemd services work normally, with bootc managing the base OS layer
- Updates: OS updates are handled through bootc, while application updates continue to use
apt - Development Status: This is experimental software - use with caution in production environments
Other Distributions
bootc itself is not tied to Debian derivatives; this issue tracks the main blocker for other distributions. However, Debian provides a solid foundation for bootc implementation due to its:
- Mature package management system
- Strong systemd integration
- Extensive hardware support
- Long-term support releases
The Linux Foundation® (TLF) has registered trademarks and uses trademarks. For a list of TLF trademarks, see Trademark Usage.