Install Flatpaks from Kickstart with livecd-creator?

Managed to workaround by creating a temporary (--rm) container using Podman at the target system path as root (--rootfs) and executing commands in it.

%post --nochroot --erroronfail
podman run --rm --privileged --rootfs "$INSTALL_ROOT" /bin/bash -c "
    flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo;
    flatpak install -y --noninteractive flathub com.google.Chrome;
"
%end
1 Like