Skip to content

rpm-ostree kargs --delete crashes with assertion pkglist->len > 0 on bootc/OCI deployment #5580

Description

@rwangsol

Describe the bug

Running rpm-ostree kargs --delete= crashes the rpm-ostreed daemon with a GLib assertion failure when the active deployment is a bootc OCI image (i.e., pulled from a container registry via ostree-unverified-registry:). The same crash also occurs when running rpm-ostree status.

Reproduction steps

  1. Boot a system deployed from a bootc OCI image (no traditional RPM layering)
  2. Run: rpm-ostree kargs --delete=isolcpus=4-43

Expected behavior

Kernel argument is deleted and a new deployment is staged successfully.

Actual behavior

The staging completes (Staging deployment... done) but then rpm-ostreed crashes:

  rpm-ostreed:ERROR:src/lib/rpmostree-package.c:284:_rpm_ostree_package_list_for_commit: assertion failed (pkglist->len > 0): (0 > 0)
  Bail out! rpm-ostreed:ERROR:src/lib/rpmostree-package.c:284:_rpm_ostree_package_list_for_commit: assertion failed (pkglist->len > 0): (0 > 0)
  Aborted (core dumped)

Note: rpm-ostree status also crashes with the identical assertion, suggesting the daemon consistently fails to handle this deployment type.

# rpm-ostree status
State: idle
Deployments:
......
**
rpm-ostreed:ERROR:src/lib/rpmostree-package.c:284:_rpm_ostree_package_list_for_commit: assertion failed (pkglist->len > 0): (0 > 0)
Bail out! rpm-ostreed:ERROR:src/lib/rpmostree-package.c:284:_rpm_ostree_package_list_for_commit: assertion failed (pkglist->len > 0): (0 > 0)
Aborted (core dumped)

System details

  • OS: Oracle Linux Server 10.1 (kernel 6.12.0-124.52.1.el10_1.x86_64)
  • Deployment type: ostree-unverified-registry (bootc OCI image)

Additional information

No response

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