Merge pull request 'Reintroduce initramfs for XFS / LUKS' (#24) from metalefty/raspberrypi:a10-initramfs into a10
Reviewed-on: #24
This commit is contained in:
		
						commit
						712bd9deb1
					
				| @ -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 | ||||||
| @ -98,6 +99,7 @@ Requires:       perl-interpreter | |||||||
| This package provides kernel headers and makefiles sufficient to build modules | This package provides kernel headers and makefiles sufficient to build modules | ||||||
| against the kernel package. | against the kernel package. | ||||||
| 
 | 
 | ||||||
|  | %if 0%{?rhel} >= 10 | ||||||
| %package kernel%{?ksuffix}-modules | %package kernel%{?ksuffix}-modules | ||||||
| Summary:        Pseudo package for kernel modules | Summary:        Pseudo package for kernel modules | ||||||
| Group:          System Environment/Kernel | Group:          System Environment/Kernel | ||||||
| @ -139,6 +141,7 @@ AutoProv:       yes | |||||||
| %description kernel%{?ksuffix}-modules-extra | %description kernel%{?ksuffix}-modules-extra | ||||||
| This package provides pseudo dependency for the packages that depends on regular | This package provides pseudo dependency for the packages that depends on regular | ||||||
| kernel-modules-extra packages. | kernel-modules-extra packages. | ||||||
|  | %endif | ||||||
| 
 | 
 | ||||||
| %if %{with_tools} | %if %{with_tools} | ||||||
| %package kernel%{?ksuffix}-tools | %package kernel%{?ksuffix}-tools | ||||||
| @ -423,13 +426,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/ | ||||||
| @ -440,6 +449,7 @@ cp $(ls -1 /boot/config-kernel-*-*|sort -V|tail -1) /boot/config-kernel.inc | |||||||
| %defattr(-,root,root) | %defattr(-,root,root) | ||||||
| /usr/src/kernels/%{version}-%{release} | /usr/src/kernels/%{version}-%{release} | ||||||
| 
 | 
 | ||||||
|  | %if 0%{?rhel} >= 10 | ||||||
| %files kernel%{?ksuffix}-modules | %files kernel%{?ksuffix}-modules | ||||||
| # empty package | # empty package | ||||||
| %defattr(-,root,root) | %defattr(-,root,root) | ||||||
| @ -452,6 +462,7 @@ cp $(ls -1 /boot/config-kernel-*-*|sort -V|tail -1) /boot/config-kernel.inc | |||||||
| # empty package | # empty package | ||||||
| %defattr(-,root,root) | %defattr(-,root,root) | ||||||
| %endif | %endif | ||||||
|  | %endif | ||||||
| 
 | 
 | ||||||
| %if %{with_tools} | %if %{with_tools} | ||||||
| %files kernel%{?ksuffix}-tools -f cpupower.lang | %files kernel%{?ksuffix}-tools -f cpupower.lang | ||||||
| @ -504,6 +515,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