Fixes to enable bootc #11
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "kfox1111/raspberrypi2:a9-bootc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Kevin Fox Kevin.Fox@pnnl.gov
Let's merge when bootc image creation process is ready. Not now.
@ -360,0 +369,4 @@mv /usr/lib/ostree-boot/config-kernel-%{version}-%{release}.inc /usr/lib/modules/%{version}-%{release}mv /usr/lib/ostree-boot/initramfs-%{version}-%{release}.img /usr/lib/modules/%{version}-%{release}/initramfsmv /usr/lib/ostree-boot/kernel-%{version}-%{release}.img /usr/lib/modules/%{version}-%{release}/vmlinuzls /usr/lib/modules/%{version}-%{release}I'm afraid this doesn't work as intended. The
almalinux-bootcimage has/bootdirectory so it will never reachelif [ -d /usr/lib/ostree-boot ]; thenblock.Also,
/bootalways exists because the directory is created during install stage.Actually, it did work when I created the pr. somehow it diverted the files from /boot away. by the time the script ran there wasnt a /boot. But, I'll rearrange it to check for bootc and go down that path if its there.
I was able to build a 9.5 based image from this flipped around patch.
Is it really necessary that conditions for
/bootand/usr/lib/ostree-bootare exclusive? If/usr/lib/ostree-bootdirectory exists on normal RPi image, the kernel won't be installed into/bootso it doesn't properly updated. Usually, the directory doesn't exist but it is not warrantied not to exist.Ah, ok. So, maybe we trigger the other way around then? if -d /usr/lib/ostree-boot, do that first, otherwise, fall back.
53d21a7b93toab62994e26@ -359,2 +357,2 @@# if we have moved to initramfscp /boot/kernel-%{version}-%{release}.img /boot/kernel%{armtarget}.imgif [ -d /usr/lib/ostree-boot ]; thenmv /usr/lib/ostree-boot/config-%{version}-%{release} /usr/lib/modules/%{version}-%{release}I don't think this will work. There's nothing to
mvat the time. You must put/usr/lib/ostree-boot/kernel-%{version}-%{release}.imgbefore moving them to/usr/lib/modules.Please check the status of the plain
almalinux-bootccontainer. We're trying to install the kernel for RPi to the bootc container, right?It does work.... I'm running this kernel from this spec. I dont know what kind of games they played with installation as I did not expect it to work either, but they do something between when they extract the files to disk, and when the rpm scripts run that moves files around. By the time the script runs the files are where the scriplet expects.
We can't extend the existing container with the new kernel. That would end up shipping two kernels due to the way container images layer. We have to build a new image with the kernel switched out in the config of the base image.
It didn't work.
How did you install it. Did you try from the bootc tarball I sent?
For the referrence: https://github.com/ostreedev/ostree/issues/2223
I've only ever tried it on a rpi5. Last I tried, uboot didnt support rpi5.
using this kernel and the build bundle I send out, I was able to produce a bootc compatable image.
installed it onto an sd card:
podman run --rm --privileged --pid=host -v /var/lib/containers:/var/lib/containers -v /dev:/dev --security-opt label=type:unconfined_t bootc install to-disk --wipe --filesystem xfs /dev/sda
then copied https://github.com/worproject/rpi5-uefi into the boot partition. It produces a bootable image then.
Checkout
From your project repository, check out a new branch and test the changes.