From: Patrick Talbert <ptalb...@redhat.com> [redhat] kernel.spec: increase initramfs reservation from 20MB to 40MB
When packaging the kernel we create a dummy 20MB file in the rpm build root so that installation requires at least this much free space in /boot. Unfortunately, we still get reports of boot failures due to dracut having failed to write the postinstall generated initramfs to /boot. We did a simple analysis of the systems we have access to and found the average initramfs size to be a little over 30MB. So let's double the reservation file size to 40MB. That should protect more uses and hopefully will not create a burden on others. Signed-off-by: Patrick Talbert <ptalb...@redhat.com> diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template index blahblah..blahblah 100644 --- a/redhat/kernel.spec.template +++ b/redhat/kernel.spec.template @@ -2275,10 +2275,10 @@ BuildKernel() { install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer install -m 644 System.map $RPM_BUILD_ROOT/lib/modules/$KernelVer/System.map - %{log_msg "Create initrfamfs"} + %{log_msg "Reserving 40MB in boot for initramfs"} # We estimate the size of the initramfs because rpm needs to take this size # into consideration when performing disk space calculations. (See bz #530778) - dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-$KernelVer.img bs=1M count=20 + dd if=/dev/zero of=$RPM_BUILD_ROOT/boot/initramfs-$KernelVer.img bs=1M count=40 if [ -f arch/$Arch/boot/zImage.stub ]; then %{log_msg "Copy zImage.stub to RPM_BUILD_ROOT"} -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3062 -- _______________________________________________ kernel mailing list -- kernel@lists.fedoraproject.org To unsubscribe send an email to kernel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue