After manually compiling and installing a new kernel, what has to be done regarding the initramfs?



A. The 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

題解

選項A,錯誤,安裝或移除Linux核心模組後,就要透過「dracut」等工具來重新產生initramfs。

選項B,正確。

選項C,錯誤,initramfs的支援與否可以透過Linux核心的編譯設定檔來設定,但是initramfs的建立需在安裝Linux核心模組後再仰賴其它工具來進行。

選項D,錯誤,initramfs並無法進行自我組態。