You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
podman run --rm -it \
-v "$PWD:$PWD" \
-w "$PWD" \
archlinux:latest
pacman -Syu --noconfirm \
&& pacman -S --noconfirm arch-install-scripts
mkdir arch-chroot
pacstart -K arch-chroot base linux linux-firmware
Use systemd-nspawn to go into the arch system to get dependencies installed
sudo systemd-nspawn -D arch-chroot
Install dependencies for bootc:
pacman -S --noconfirm pkg-config openssl cargo make ostree
Build bootc with make and copy the resulting bootc binary to /usr/bin
Prepare and commit to the ostree repo
mkdir -p /ostree
ostree init --repo=/ostree/repo
# We need to skip some stuff that is problematic
cat > /tmp/skip-list.txt <<EOF/dev/proc/run/sys/sysroot/var/tmp/ostreeEOF# Create commit with the rootfs already loaded
ostree commit --repo=/ostree/repo --skip-list=/tmp/skip-list.txt --branch main /
Encapsulate the ostree ref into an OCI container via:
# This part needs to be done in Fedora outside of the arch-chroot as archlinux ostree does not have ostree-rs-ext
sudo ostree container encapsulate --repo=arch-chroot/ostree main oci:./akdev-arch