After manually compiling and installing a new kernel, what has to be done regarding the initramfs?
A. To initramfs is independent of the kernel and should not be modified unless the hardware configuration of the machine has changed
B. Since the initramfs contains kernel modules, a new initramfs must be built for the new kernel
C. During the compilation of the Linux kernel, a new initramfs is built automatically. The new initramfs only needs to be installed
D. The system should be restarted since the initramfs reconfigures itself for the new kernel during the startup of the system
I vote for B, because:
(1) The 2.6 kernel build process always creates a gzipped cpio format initramfs
archive and links it into the resulting kernel binary. By default, this
archive is empty (consuming 134 bytes on x86).
Source: https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt
(Section “Populating initramfs”)
(2) install the kernel with the command: “sudo make install”
Enable the kernel for boot “sudo update-initramfs -c -k 4.17-rc2 && sudo update-grub”
Source: https://www.linux.com/topic/desktop/how-compile-linux-kernel-0/
(Section “Compiling and installing”)
yes c is right
c is the correct one
The correct answer is B.
No initramfs is created automatically during the kernel compilation!
Many downvoted here, but I agree with Eric. Might it be this is different on Rhel vs. Ubuntu?