Skip to content

cloud-init fails on composefs-backed bootc images #73

Description

@alicefr

When running a bink cluster with a composefs-backed bootc image, cloud-init-main.service exits with status 1 due to two commands in the user-data template that assume a traditional ostree layout:

  1. sed -i '/swap/d' /etc/fstab — /etc/fstab does not exist on composefs images.
  2. The TargetImgRef block constructs an ostree origin file path using bootc status --json | jq -r '.status.booted.ostree.checksum', which returns null on composefs (no traditional ostree deployment). This results in sed trying to read /ostree/deploy/default/deploy/null..origin, which doesn't exist. The failure in this block causes cc_scripts_user to fail, which makes cloud-init exit non-zero

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