Skip to content

use bootc to install the system (instead of ostreecontainer) #91

Description

@renner0e

We want to eventually use bootc to install the system, this also should unblock composefs (sealed) variants

replacing

ostreecontainer --url=$IMAGE_REF:$IMAGE_TAG --transport=containers-storage --no-signature-verification

with

bootc --source-imgref=containers-storage:ghcr.io/ublue-os/aurora:testing --target-imgref=ghcr.io/ublue-os/aurora:testing

is broken, it tries to fetch all new layers (networking is completely disabled on that VM)

my guess is that this conflicts with something anaconda does

iso/iso_files/build.sh

Lines 25 to 34 in ed802cc

# Configure podman temporarily to write to /usr/lib/containers/storage
# This avoids storing the huge base image in /var/lib/containers/storage
# (which is empty/tmpfs in the booted live environment and would exhaust RAM)
mkdir -p /etc/containers
cat >/etc/containers/storage.conf <<'EOF'
[storage]
driver = "overlay"
runroot = "/run/containers/storage"
graphroot = "/usr/lib/containers/storage"
EOF

as a manual install with (partitioning and mounting was done manually by me beforehand)

podman run --rm --privileged --pid=host --ipc=host \
  --security-opt label=type:unconfined_t \
  -v /usr/lib/containers:/var/lib/containers -v /dev:/dev \
  -v /:/run/host \
  -e RUST_LOG=debug \
  $IMAGE \
  bootc install to-filesystem \
    --source-imgref=containers-storage:$IMAGE \
    --bootloader=grub --skip-finalize \
    /run/host/mnt/

succeeds

notice the

-v /usr/lib/containers:/var/lib/containers

We should figure out why anaconda (presumably) doesn't see the image in the containers storage

https://fedoramagazine.org/introducing-the-new-bootc-kickstart-command-in-anaconda/

https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html#bootc

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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