Skip to content

baseimage-root: Missing ostree -> sysroot/ostree link for images without documentation #1351

@champtar

Description

@champtar

Buidling a base image with rpm-ostree with documentation: false

baseimage-root fails when running on usr/share/doc/bootc/baseimage/base

bootc/lib/src/lints.rs

Lines 624 to 630 in 5abda6a

// If we have our own documentation with the expected root contents
// embedded, then check that too! Mostly just because recursion is fun.
if let Some(dir) = dir.open_dir_optional(BASEIMAGE_REF)? {
if let Err(e) = check_baseimage_root_norecurse(&dir, config)? {
return Ok(Err(e));
}
}

bootc rpm only has files marked as documentation

# rpm -qd bootc
/usr/share/doc/bootc/README.md
/usr/share/doc/bootc/baseimage/base/ostree
/usr/share/doc/bootc/baseimage/base/usr/lib/ostree/prepare-root.conf
/usr/share/doc/bootc/baseimage/dracut/usr/lib/dracut.conf.d/10-bootc-base.conf
/usr/share/doc/bootc/baseimage/systemd/usr/lib/kernel/install.conf
...

So the folders are still presents in the image, not the files

This can be fixed by not marking the %dir under /usr/share/doc/bootc in the specfile so they don't appear in rpm -q --dump bootc

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