Package Details: bootc 1.17.4-1

Git Clone URL: https://aur.archlinux.org/bootc.git (read-only, click to copy)
Package Base: bootc
Description: Boot and upgrade via container images
Upstream URL: https://github.com/bootc-dev/bootc
Licenses: Apache-2.0 OR MIT
Submitter: jjm
Maintainer: jjm
Last Packager: jjm
Votes: 3
Popularity: 0.28
First Submitted: 2025-11-08 14:22 (UTC)
Last Updated: 2026-11-04 20:45 (UTC)

Latest Comments

vonbloom commented on 2026-10-07 16:23 (UTC) (edited on 2026-10-07 16:36 (UTC) by vonbloom)

Hi, thanks for packaging bootc!

Following up on marcoh00's comment: 1.17.0-1 still fails in a clean environment with the same selinux-sys error:

error: failed to run custom build command for `selinux-sys v0.7.0`
selinux-sys: Failed to find 'selinux/selinux.h'. Please make sure the C header files of libselinux are installed and accessible

Instead of depending on libselinux (AUR, which also pulls libsepol), 1.17.0 can be built without it: upstream made SELinux support an optional default feature for exactly this case (commit 43042ecd, "lib: Make SELinux support an optional default feature", which mentions Arch). Without it bootc treats SELinux as disabled, which is what Arch systems (no SELinux, or AppArmor) need anyway. The Makefile documents building with --no-default-features plus the features to keep.

The features have to reach every cargo call, including make install: its install target depends on bin and manpages, which otherwise rebuild with the default features. pre-6.15 is the initramfs crate's default (composefs fallback for kernels older than 6.15, e.g. linux-lts), which --no-default-features would drop.

I also added skopeo to depends: bootc fetches images through skopeo's image proxy (upstream's bootc.spec has Requires: skopeo), so bootc upgrade/switch need it.

With this, makepkg builds and check() passes in a clean Arch container (24 test suites, 0 failures):

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,6 +12,7 @@
 )
 depends=(
     bash
+    skopeo
     gcc-libs
     glib2
     glibc
@@ -29,20 +30,24 @@
     cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
 }

+# The default features include selinux (libselinux is not in the Arch repositories); keep
+# pre-6.15 (composefs on kernels older than 6.15, e.g. linux-lts), as in the Makefile example
+_features=(--no-default-features --features install-to-disk,pre-6.15)
+
 build() {
     export CARGO_TARGET_DIR=target
     cd $pkgname-$pkgver
-    cargo build --frozen --release
-    cargo run --frozen --package xtask -- manpages
+    cargo build --frozen --release "${_features[@]}"
+    cargo run --frozen --package xtask -- manpages -- "${_features[@]}"
 }

 check() {
     cd $pkgname-$pkgver
-    cargo test --frozen
+    cargo test --frozen "${_features[@]}"
 }

 package() {
-    make -C $pkgname-$pkgver DESTDIR=$pkgdir install
+    make -C $pkgname-$pkgver DESTDIR=$pkgdir CARGO_OPTIONS="${_features[*]}" install

     install -m 644 -t $pkgdir/usr/share/doc/$pkgname -D $pkgname-$pkgver/README.md

marcoh00 commented on 2026-09-07 15:55 (UTC)

Latest bootc 1.16.11 seems to have added a hard dependency to libselinux in https://github.com/bootc-dev/bootc/commit/c3241ab77cab90c619ca1ce646e3b37e766f30fc

This makes the build fail:

 thread 'main' (77623) panicked at /home/builder/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/selinux-sys-0.6.15/build.rs:253:10:
  selinux-sys: Failed to find 'selinux/selinux.h'. Please make sure the C header files of libselinux are installed and accessible: Kind(NotFound)
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Looks like this will need an additional dependency on libselinux (AUR).

Sirbrave commented on 2026-04-15 11:00 (UTC) (edited on 2026-04-15 18:23 (UTC) by Sirbrave)

Original bootc's Makefile creates /usr/libexec/libostree/ext for ostree container compatibility. I suggest to fix this behavior by using make install instead of make install-all, which skips make install-ostree-hooks.

Another solution is moving /usr/libexec/libostree to /usr/lib, like this:

make -C $pkgname-$pkgver DESTDIR=$pkgdir install-all
mv $pkgdir/usr/libexec/libostree $pkgdir/usr/lib
rmdir $pkgdir/usr/libexec

Hec commented on 2025-11-22 09:14 (UTC)

I currently have some issues with this package when used in a real archlinux-bootc installation. The way its packaged leaves a lot of files not installed.

My recommendation personally is to replace the package() script with something like this:

cd "$pkgname-$pkgver"
install -Dm 644 "LICENSE-APACHE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
install -Dm 644 "LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
make DESTDIR="$pkgdir/" install-all install-initramfs-dracut

This will ensure that all of the files are properly installed into the system. Do note though, that when 1.11.0 comes out, you will have to remove install-initramfs-dracut from the make command, as the latest git has removed install-initramfs-dracut as a make target.