forked from rpms/raspberrypi2
Reintroduce initramfs for XFS / LUKS
This commit is contained in:
parent
b484859d37
commit
0278a09fdf
@ -11,7 +11,7 @@ ExclusiveArch: aarch64
|
|||||||
|
|
||||||
%define local_version v8
|
%define local_version v8
|
||||||
%define bcmmodel 2711
|
%define bcmmodel 2711
|
||||||
%define extra_version 1
|
%define extra_version 2
|
||||||
|
|
||||||
# This originally implies Kernel 4.x for RPi 2 and is not appropriate now.
|
# This originally implies Kernel 4.x for RPi 2 and is not appropriate now.
|
||||||
# Be careful to change this not to disturb the seamless package update.
|
# Be careful to change this not to disturb the seamless package update.
|
||||||
@ -78,6 +78,7 @@ Provides: kernel = %{version}-%{release}
|
|||||||
Provides: kernel-core = %{version}-%{release}
|
Provides: kernel-core = %{version}-%{release}
|
||||||
Provides: installonlypkg(kernel)
|
Provides: installonlypkg(kernel)
|
||||||
Requires: coreutils
|
Requires: coreutils
|
||||||
|
Requires: dracut
|
||||||
%description kernel%{?ksuffix}
|
%description kernel%{?ksuffix}
|
||||||
The kernel package contains the Linux kernel (vmlinuz), the core of any
|
The kernel package contains the Linux kernel (vmlinuz), the core of any
|
||||||
Linux operating system. The kernel handles the basic functions
|
Linux operating system. The kernel handles the basic functions
|
||||||
@ -423,13 +424,19 @@ if [ -d /boot ]; then
|
|||||||
cp /usr/share/%{name}-kernel%{?ksuffix}/%{version}-%{release}/boot/overlays/*.dtb* /boot/overlays/
|
cp /usr/share/%{name}-kernel%{?ksuffix}/%{version}-%{release}/boot/overlays/*.dtb* /boot/overlays/
|
||||||
cp /usr/share/%{name}-kernel%{?ksuffix}/%{version}-%{release}/boot/overlays/README /boot/overlays/
|
cp /usr/share/%{name}-kernel%{?ksuffix}/%{version}-%{release}/boot/overlays/README /boot/overlays/
|
||||||
cp /boot/config-kernel-%{version}-%{release}.inc /boot/config-kernel.inc
|
cp /boot/config-kernel-%{version}-%{release}.inc /boot/config-kernel.inc
|
||||||
|
|
||||||
|
/usr/bin/dracut --no-hostonly /boot/initramfs-%{version}-%{release}.img %{version}-%{release}
|
||||||
|
cp /boot/initramfs-%{version}-%{release}.img /boot/initramfs%{armtarget}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun kernel%{?ksuffix}
|
%postun kernel%{?ksuffix}
|
||||||
if [ -f /boot/kernel%{armtarget}.img ];then
|
if [ -f /boot/kernel%{armtarget}.img ]; then
|
||||||
#only restore kernel%{armtarget}.img if it exists, we may have moved to initramfs
|
#only restore kernel%{armtarget}.img if it exists, we may have moved to initramfs
|
||||||
cp $(ls -1 /boot/kernel-*-*|sort -V|tail -1) /boot/kernel%{armtarget}.img
|
cp $(ls -1 /boot/kernel-*-*|sort -V|tail -1) /boot/kernel%{armtarget}.img
|
||||||
fi
|
fi
|
||||||
|
if [ -f /boot/initramfs%{armtarget} ]; then
|
||||||
|
cp $(ls -1 /boot/initramfs-*-*|sort -V| tail -1) /boot/initramfs%{armtarget}
|
||||||
|
fi
|
||||||
cp $(ls -1d /usr/share/%{name}-kernel%{?ksuffix}/*-*/|sort -V|tail -1)/boot/*.dtb /boot/
|
cp $(ls -1d /usr/share/%{name}-kernel%{?ksuffix}/*-*/|sort -V|tail -1)/boot/*.dtb /boot/
|
||||||
cp $(ls -1d /usr/share/%{name}-kernel%{?ksuffix}/*-*/|sort -V|tail -1)/boot/overlays/*.dtb* /boot/overlays/
|
cp $(ls -1d /usr/share/%{name}-kernel%{?ksuffix}/*-*/|sort -V|tail -1)/boot/overlays/*.dtb* /boot/overlays/
|
||||||
cp $(ls -1d /usr/share/%{name}-kernel%{?ksuffix}/*-*/|sort -V|tail -1)/boot/overlays/README /boot/overlays/
|
cp $(ls -1d /usr/share/%{name}-kernel%{?ksuffix}/*-*/|sort -V|tail -1)/boot/overlays/README /boot/overlays/
|
||||||
@ -504,6 +511,11 @@ cp $(ls -1 /boot/config-kernel-*-*|sort -V|tail -1) /boot/config-kernel.inc
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 23 2025 Koichiro Iwao <meta@almalinux.org> - 6.12.25-20250428.v8.2
|
||||||
|
- Reintroduce initramfs for XFS / LUKS
|
||||||
|
https://github.com/AlmaLinux/raspberry-pi/issues/65
|
||||||
|
https://github.com/AlmaLinux/raspberry-pi/issues/86
|
||||||
|
|
||||||
* Mon May 26 2025 Koichiro Iwao <meta@almalinux.org> - 6.12.25-20250428.v8.1
|
* Mon May 26 2025 Koichiro Iwao <meta@almalinux.org> - 6.12.25-20250428.v8.1
|
||||||
- Update kernel to v6.12.25 stable_20250428
|
- Update kernel to v6.12.25 stable_20250428
|
||||||
- Update firmware to 1.20250430
|
- Update firmware to 1.20250430
|
||||||
|
Loading…
Reference in New Issue
Block a user