Skip to content

composefs backend may require 4 (instead of 3) sets of kernel to fit in /boot #2697

Backlog

Description

@karuboniru

Summary

When a staged deployment already exists, bootc update writes the new kernel/initrd before garbage-collecting the previously staged deployment. This transiently requires /boot to hold up to 4 sets of kernel/initrd instead of 3, which overflows a small /boot and aborts the upgrade mid-write.

Environment

  • bootc version: 1.17.5
  • Backend: composefs
  • Filesystem: /boot : /dev/nvme0n1p2 974M 792M 115M 88% /boot

Steps to reproduce

  1. Boot a deployment.
  2. sudo bootc update once, producing a staged deployment.
  3. Update the remote image
  4. sudo bootc update again.

Expected behavior

The upgrade should succeed, as it always has been with ostree backend.

Actual behavior

$ sudo bootc update
....
Layers imported
Finalizing image
error: Upgrading composefs: Performing Upgrade Operation: Setting up BLS boot: Writing BLS entries to disk: Writing initrd to path: No space left on device (os error 28)

/boot at the time of failure:

$ ls -l /boot
lrwxrwxrwx. 1 root root    1 2023-02-23  boot -> .
drwxr-xr-x. 2 root root 4.0K 2026-11-24 18:05 bootc_composefs-4313e26f...f542e   # rollback (45.20261124.1)
drwxr-xr-x. 2 root root 4.0K 2026-11-26 18:49 bootc_composefs-910ca3c7...b2f8fd43  # ← new attempt, write failed
drwxr-xr-x. 2 root root 4.0K 2026-11-26 09:22 bootc_composefs-daf0450c...97a69410  # staged (45.20261125.0)
drwxr-xr-x. 2 root root 4.0K 2026-11-25 08:52 bootc_composefs-dc65e9f4...13a0582a  # booted (45.20261124.2)
-rw-r--r--. 1 root root 3.3K 2026-10-16 20:06 bootupd-state.json
drwx------. 3 root root 4.0K 1970-01-01  efi
drwx------. 3 root root 4.0K 2026-11-26 09:01 grub2
drwxr-xr-x. 4 root root 4.0K 2026-11-26 09:22 loader
drwx------. 2 root root  16K 2023-02-23  lost+found

bootc status at the time of failure:

  Staged image:   quay.io/karuboniru/karuboniru-workstation:f45
        Digest:   sha256:b01925f3...8e4a4cd (amd64)
        Verity:   daf0450c...97a69410
       Version:   45.20261125.0 (2026-11-25T18:42:32Z)

● Booted image:   quay.io/karuboniru/karuboniru-workstation:f45
        Digest:   sha256:43d56508...5f68c7ea7 (amd64)
        Verity:   dc65e9f4...13a0582a
       Version:   45.20261124.2 (2026-11-24T15:14:00Z)

  Rollback image: quay.io/karuboniru/karuboniru-workstation:f45
        Digest:   sha256:02761af2...5f68c7ea7 (amd64)
        Verity:   4313e26f...f542e
         Version: 45.20261124.1 (2026-11-24T09:20:41Z)

Note that the four bootc_composefs-<verity> directories map exactly to the four deployments involved: rollback (4313e26f), booted (dc65e9f4), already-staged (daf0450c), and the new deployment being staged by this update (910ca3c7, created at 18:49, i.e. the one whose initrd write failed).

Workaround

sudo bootc delete-deployment ... to remove the old staged before updating. But the actual fix would be doing delete-deployment before starting the new deployment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions