Skip to content

bootupctl update fails to parse .bootc-aleph.json when the installed image has no version #1166

Closed

Description

@Letdown2491

We build a small Fedora bootc desktop (kumaOS) and install it with bootc install to disk. Since September 30, every fresh install fails bootloader-update.service on every boot:

error: Parsing "/sysroot/.bootc-aleph.json": invalid type: null, expected a string at line 1 column 717

The system boots fine otherwise, but the failed unit makes anything that watches failed units (our kuma doctor) grade the machine unhealthy.

Looking at both sides, the file's version field is optional on the writer and required on the reader. bootupd's Aleph in src/aleph.rs needs it as a plain string:

pub(crate) version: String,

bootc's InstallAleph in crates/lib/src/install/aleph.rs declares it as

pub(crate) version: Option<String>,

with no skip_serializing_if, so when the installed image carries no version metadata the file ends up containing "version": null. The writer does use skip_serializing_if for its image field when it's None, so this looks like an oversight rather than intent. ("timestamp": null in the same file is harmless for bootupd since unknown fields get ignored — version is the only field it actually requires.)

I can reproduce it against bootupd's own struct:

serde_json::from_str::<Aleph>("{\"version\": null}")

which gives exactly the error above.

Timeline in case it's useful: we compose from quay.io/fedora/fedora-bootc:44, which is rebuilt daily. Installs from the September 29 build work; installs from September 30 onward write the null version. bootc was 1.16.13-1.fc44 on both days, so the binary didn't change — something in the images' version metadata did. Only fresh installs are affected (the aleph is written once at install time), and live ISO boots don't hit it because the unit's ExecCondition skips them on squashfs.

I'm not sure whether you'd rather fix this on the reader (make version optional) or on the writer (skip the field when None, like image). Happy to test a fix, or pull the actual file off a broken install if that's useful.

Activity

  1. cgwalters commented on Oct 3, 2026

    @cgwalters
    Member

    Fixing it on both the reader and writer would make sense to me!

  2. added
    bug
    jira
    on Oct 16, 2026
  3. Rolv-Apneseth commented on Oct 28, 2026

    @Rolv-Apneseth
    Member

    Thank you for opening this @Letdown2491.

    Both #1178 and bootc-dev/bootc#2591 have been merged, so I think we can close this. The fix should be in the next bootupd release.

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

    bugjira

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions