Fixes to enable bootc #11
@ -23,7 +23,7 @@ index e87791286ab4..6fda5b261683 100644
|
|||||||
CONFIG_CRYPTO_USER=m
|
CONFIG_CRYPTO_USER=m
|
||||||
CONFIG_CRYPTO_CRYPTD=m
|
CONFIG_CRYPTO_CRYPTD=m
|
||||||
CONFIG_CRYPTO_AES=m
|
CONFIG_CRYPTO_AES=m
|
||||||
@@ -1674,3 +1672,39 @@ CONFIG_SCHED_TRACER=y
|
@@ -1674,3 +1672,43 @@ CONFIG_SCHED_TRACER=y
|
||||||
CONFIG_BLK_DEV_IO_TRACE=y
|
CONFIG_BLK_DEV_IO_TRACE=y
|
||||||
# CONFIG_UPROBE_EVENTS is not set
|
# CONFIG_UPROBE_EVENTS is not set
|
||||||
# CONFIG_STRICT_DEVMEM is not set
|
# CONFIG_STRICT_DEVMEM is not set
|
||||||
@ -63,6 +63,10 @@ index e87791286ab4..6fda5b261683 100644
|
|||||||
+CONFIG_FW_LOADER_COMPRESS=y
|
+CONFIG_FW_LOADER_COMPRESS=y
|
||||||
+CONFIG_FW_LOADER_COMPRESS_XZ=y
|
+CONFIG_FW_LOADER_COMPRESS_XZ=y
|
||||||
+CONFIG_FW_LOADER_COMPRESS_ZSTD=y
|
+CONFIG_FW_LOADER_COMPRESS_ZSTD=y
|
||||||
|
+CONFIG_EROFS_FS=m
|
||||||
|
+CONFIG_EROFS_FS_XATTR=y
|
||||||
|
+CONFIG_EROFS_POSIX_ACL=y
|
||||||
|
+CONFIG_EROFS_FS_SECURITY=y
|
||||||
--
|
--
|
||||||
2.45.1
|
2.45.1
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ index 79c4332581eb..7b63683ff687 100644
|
|||||||
CONFIG_CRYPTO_USER=m
|
CONFIG_CRYPTO_USER=m
|
||||||
CONFIG_CRYPTO_CRYPTD=m
|
CONFIG_CRYPTO_CRYPTD=m
|
||||||
CONFIG_CRYPTO_AES=m
|
CONFIG_CRYPTO_AES=m
|
||||||
@@ -1677,3 +1675,39 @@ CONFIG_SCHED_TRACER=y
|
@@ -1677,3 +1675,43 @@ CONFIG_SCHED_TRACER=y
|
||||||
CONFIG_BLK_DEV_IO_TRACE=y
|
CONFIG_BLK_DEV_IO_TRACE=y
|
||||||
# CONFIG_UPROBE_EVENTS is not set
|
# CONFIG_UPROBE_EVENTS is not set
|
||||||
# CONFIG_STRICT_DEVMEM is not set
|
# CONFIG_STRICT_DEVMEM is not set
|
||||||
@ -63,6 +63,10 @@ index 79c4332581eb..7b63683ff687 100644
|
|||||||
+CONFIG_FW_LOADER_COMPRESS=y
|
+CONFIG_FW_LOADER_COMPRESS=y
|
||||||
+CONFIG_FW_LOADER_COMPRESS_XZ=y
|
+CONFIG_FW_LOADER_COMPRESS_XZ=y
|
||||||
+CONFIG_FW_LOADER_COMPRESS_ZSTD=y
|
+CONFIG_FW_LOADER_COMPRESS_ZSTD=y
|
||||||
|
+CONFIG_EROFS_FS=m
|
||||||
|
+CONFIG_EROFS_FS_XATTR=y
|
||||||
|
+CONFIG_EROFS_POSIX_ACL=y
|
||||||
|
+CONFIG_EROFS_FS_SECURITY=y
|
||||||
--
|
--
|
||||||
2.45.1
|
2.45.1
|
||||||
|
|
||||||
|
@ -354,16 +354,24 @@ find %{buildroot}/usr/include \
|
|||||||
|
|
||||||
|
|
||||||
%posttrans kernel%{?ksuffix}
|
%posttrans kernel%{?ksuffix}
|
||||||
if [ -f /boot/kernel%{armtarget}.img ] || [ ! -f /boot/config-kernel.inc ];then
|
if [ -d /usr/lib/ostree-boot ]; then
|
||||||
# if nothing exists, fall back to generating the file, but don't create it
|
mv /usr/lib/ostree-boot/config-%{version}-%{release} /usr/lib/modules/%{version}-%{release}
|
||||||
|
|||||||
# if we have moved to initramfs
|
mv /usr/lib/ostree-boot/config-kernel-%{version}-%{release}.inc /usr/lib/modules/%{version}-%{release}
|
||||||
cp /boot/kernel-%{version}-%{release}.img /boot/kernel%{armtarget}.img
|
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
|
||||||
|
cp /boot/kernel-%{version}-%{release}.img /boot/kernel%{armtarget}.img
|
||||||
|
fi
|
||||||
|
cp /usr/share/%{name}-kernel/%{version}-%{release}/boot/*.dtb /boot/
|
||||||
|
cp /usr/share/%{name}-kernel/%{version}-%{release}/boot/overlays/*.dtb* /boot/overlays/
|
||||||
|
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
|
||||||
fi
|
fi
|
||||||
cp /usr/share/%{name}-kernel/%{version}-%{release}/boot/*.dtb /boot/
|
|
||||||
cp /usr/share/%{name}-kernel/%{version}-%{release}/boot/overlays/*.dtb* /boot/overlays/
|
|
||||||
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
|
|
||||||
|
|
||||||
%postun kernel%{?ksuffix}
|
%postun kernel%{?ksuffix}
|
||||||
if [ -f /boot/kernel%{armtarget}.img ];then
|
if [ -f /boot/kernel%{armtarget}.img ];then
|
||||||
|
Loading…
Reference in New Issue
Block a user
I don't think this will work. There's nothing to
mv
at the time. You must put/usr/lib/ostree-boot/kernel-%{version}-%{release}.img
before moving them to/usr/lib/modules
.Please check the status of the plain
almalinux-bootc
container. 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.