chore: replace podman push with podman pull to overlay storage

This commit is contained in:
Robert Sturla 2025-03-26 18:43:56 +00:00
parent ce16cbc638
commit 545816cbb7

View file

@ -79,13 +79,12 @@ rootfs-include-container $IMAGE:
# We need this in the rootfs specifically so that bootc can know what images are on disk via "podman images"
sudo mkdir -p "${ROOTFS}/var/lib/containers/storage"
TARGET_CONTAINERS_STORAGE="$(realpath "$ROOTFS")/var/lib/containers/storage"
# Remove signatures as signed images get super mad when you do this
sudo "${PODMAN}" push "${IMAGE}" "containers-storage:[overlay@${TARGET_CONTAINERS_STORAGE}]$IMAGE" --remove-signatures
sudo umount "${TARGET_CONTAINERS_STORAGE}/overlay"
# FIXME: add renovate rules for this.
# Necessary so `podman images` can run on installers
sudo curl -fSsLo "${ROOTFS}/usr/bin/fuse-overlayfs" "https://github.com/containers/fuse-overlayfs/releases/download/v1.14/fuse-overlayfs-$(arch)"
sudo chmod +x "${ROOTFS}/usr/bin/fuse-overlayfs"
# Remove signatures as signed images get super mad when you do this
sudo "${PODMAN}" pull "${IMAGE}" --root="${TARGET_CONTAINERS_STORAGE}" --storage-driver=overlay --storage-opt=overlay.mount_program="${ROOTFS}/usr/bin/fuse-overlayfs"
rootfs-include-flatpaks $FLATPAKS_FILE="src/flatpaks.example.txt":
#!/usr/bin/env bash