Skip to content

Not able to install freeipa-client on custom image #983

@woprandi

Description

@woprandi

I have this simple Containerfile

ARG FEDORA_VERSION=42
FROM quay.io/fedora-ostree-desktops/silverblue:$FEDORA_VERSION

LABEL containers.bootc 1
LABEL ostree.bootable 1

RUN systemctl set-default graphical.target
RUN dnf install -y vim freeipa-client && dnf clean all
#RUN rpm-ostree install freeipa-client
RUN bootc container lint
RUN ostree container commit

I got this warning during build but I don't know if it's important :

Lint warning: var-log: Found non-empty logfiles:
  /var/log/dnf5.log

Lint warning: var-tmpfiles: Found content in /var missing systemd tmpfiles.d entries:
  d /var/cache/libdnf5 0755 root root - -
  d /var/lib/certmonger 0755 root root - -
  d /var/lib/certmonger/cas 0700 root root - -
  d /var/lib/certmonger/local 0700 root root - -
  d /var/lib/certmonger/requests 0700 root root - -
  ...and 8 more
Found non-directory/non-symlink files in /var:
  var/cache/ldconfig/aux-cache
  var/lib/dnf/repos/fedora-f8e7c8bda68a349e/countme
  var/lib/dnf/repos/updates-79babcf8637033ce/countme
  var/log/dnf5.log

Checks passed: 10
Checks skipped: 1
Warnings: 2

and this kickstart file to auto-install image

[customizations.installer.kickstart]
contents = """
text --non-interactive
zerombr
clearpart --all --initlabel 
firstboot --enable
lang fr_FR
keyboard fr
autopart
timezone Europe/Paris --utc
rootpw rootpassword
xconfig --startxonboot
#"""

I built the iso :

sudo podman run --rm -it --privileged --pull=newer \
      --security-opt label=type:unconfined_t \
      -v ./output:/output \
      -v /var/lib/containers/storage:/var/lib/containers/storage \
      -v ./config.toml:/config.toml:ro \
      quay.io/centos-bootc/bootc-image-builder:latest \
      --type iso \
      --chown 1000:1000 \
      localhost/testosbuild

But when OS is installed, I still don't have freeipa-client installed. I can install by hand with rpm-ostree. But the goal is to be ready to join a realm on first boot.

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