Fixes to enable bootc #11
@ -354,7 +354,13 @@ find %{buildroot}/usr/include \
|
||||
|
||||
|
||||
%posttrans kernel%{?ksuffix}
|
||||
if [ -d /boot ]; then
|
||||
if [ -d /usr/lib/ostree-boot ]; then
|
||||
mv /usr/lib/ostree-boot/config-%{version}-%{release} /usr/lib/modules/%{version}-%{release}
|
||||
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}/initramfs
|
||||
mv /usr/lib/ostree-boot/kernel-%{version}-%{release}.img /usr/lib/modules/%{version}-%{release}/vmlinuz
|
||||
ls /usr/lib/modules/%{version}-%{release}
|
||||
elif [ -d /boot ]; then
|
||||
if [ -f /boot/kernel%{armtarget}.img ] || [ ! -f /boot/config-kernel.inc ];then
|
||||
# if nothing exists, fall back to generating the file, but don't create it
|
||||
# if we have moved to initramfs
|
||||
@ -365,12 +371,6 @@ if [ -d /boot ]; then
|
||||
cp /usr/share/%{name}-kernel/%{version}-%{release}/boot/overlays/README /boot/overlays/
|
||||
/usr/bin/dracut /boot/initramfs-%{version}-%{release}.img %{version}-%{release}
|
||||
|
||||
cp /boot/config-kernel-%{version}-%{release}.inc /boot/config-kernel.inc
|
||||
elif [ -d /usr/lib/ostree-boot ]; then
|
||||
mv /usr/lib/ostree-boot/config-%{version}-%{release} /usr/lib/modules/%{version}-%{release}
|
||||
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}/initramfs
|
||||
mv /usr/lib/ostree-boot/kernel-%{version}-%{release}.img /usr/lib/modules/%{version}-%{release}/vmlinuz
|
||||
ls /usr/lib/modules/%{version}-%{release}
|
||||
fi
|
||||
|
||||
%postun kernel%{?ksuffix}
|
||||
|
Loading…
Reference in New Issue
Block a user
I'm afraid this doesn't work as intended. The
almalinux-bootc
image has/boot
directory so it will never reachelif [ -d /usr/lib/ostree-boot ]; then
block.Also,
/boot
always 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.