Skip to content

bootc and ostree native containers need --no-start-daemon option in the ostree plan. #155

@queeup

Description

@queeup

I am trying to build my own Silverblue bootc image and install Nix while building container my self. The problem is while trying to install on container build time, It is complaining about systemd. In silverblue ostree native container, systemd is not active on the image itself.

systemd was not active.

If it will be started later consider, passing `--no-start-daemon`.

To use a `root`-only Nix install, consider passing `--init none`.

As I can see there is no --no-start-daemon & --init none options with ostree install.

Can be reproduced with building this Dockerfile/Containerfile:

ARG FEDORA_VERSION=43

FROM quay.io/fedora-ostree-desktops/silverblue:${FEDORA_VERSION}

RUN curl -sSfL https://artifacts.nixos.org/nix-installer | sh -s -- install ostree --no-confirm

RUN bootc container lint --no-truncate

This containers is booting with fedora bootc images and there is systemd after boot process but on the build stage there is no systemd. Thats the problem. What I was looking for install with "--no-start-daemon" option for ostree. That option is not implemented to ostree yet.

Some info about ostree native containers:

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions