building CD like initrd.img with latest kernel and modules
Posted: 2020/07/01 08:20:36
I want to build initrd.img similar to initrd.img comes with CentOS ISO which has support for multiple platforms.
Background: We are shipping our product as ISO, prepared from CentOS 7.5. For security compliance reasons we need to update kernel RPMs. While preparing ISO we used initrd.img, vmlinuz and other artifacts from isolinux directory from ISO.
Actual issue: We can not do rpm -Uvh kernel RPM as we are having customisation in grub.cfg because the way partitioning is done. We need to ship an update which will have updated initrd.img and vmlinuz. While updating kernel RPMs on lab VM and hardware devices we found
1. It installs initramfs
2. initramfs is different on each of them. e.g. hardware initramfs has usr/lib/firmware/tigon/* which is not there in initramfs installed on VM.
3. Hardware or VM does not boot if cross initramfs is used.
We can not ship the updates with initramfs obtained after RPM update on lab devices because they are platform specific which is not the case for initrd from ISO.
So, wanted to know a way to build initrd.img using updated kernel and related RPMs. Please let me know how can I do it or is there a way to get updated initrd.img apart from copying it from CentOS ISOs.
Thank You,
Prasad
Background: We are shipping our product as ISO, prepared from CentOS 7.5. For security compliance reasons we need to update kernel RPMs. While preparing ISO we used initrd.img, vmlinuz and other artifacts from isolinux directory from ISO.
Actual issue: We can not do rpm -Uvh kernel RPM as we are having customisation in grub.cfg because the way partitioning is done. We need to ship an update which will have updated initrd.img and vmlinuz. While updating kernel RPMs on lab VM and hardware devices we found
1. It installs initramfs
2. initramfs is different on each of them. e.g. hardware initramfs has usr/lib/firmware/tigon/* which is not there in initramfs installed on VM.
3. Hardware or VM does not boot if cross initramfs is used.
We can not ship the updates with initramfs obtained after RPM update on lab devices because they are platform specific which is not the case for initrd from ISO.
So, wanted to know a way to build initrd.img using updated kernel and related RPMs. Please let me know how can I do it or is there a way to get updated initrd.img apart from copying it from CentOS ISOs.
Thank You,
Prasad