Experiment to see if Bootc could work on PostmarketOS.
This requires an already setup postmarketos environment.
Firstly, we need to generate a postmarketos image.
- Download and install
pmbootstrapwith these instructions. - Run
pmbootstrap initand use all the defaults, except when it asks aboutsystemdset it toalways. I recommend eitherphoshorgnome-mobilefor the DE when asked. - Run
pmboostrap install - Go to a repo directory, create a
pm-exportsfolder, cd into it, and runpmbootstrap export .- You should now have a folder filled with symlinks, but only
initramfs,qemu-amd64.img, andvmlinuz-stableare valid.
- You should now have a folder filled with symlinks, but only
- Move up to the parent directory and run the following to create the docker image.
guestfish --ro -a ./pm-exports/qemu-amd64.img -m /dev/sda2:/ tar-out / - | sudo podman import - postmarketos
In order to get a running pmos-bootc system you can run the following steps:
just build-containerfile # This will build the containerfile and all the dependencies you need
just generate-bootable-image # Generates a bootable image for you using bootc!Then you can run the bootable.img as your boot disk in your preferred hypervisor.
mount /dev/vda2 /sysroot/boot- You need this to getbootc statusand other stuff working (/dev/vda2is your ESP)