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 並無法進行自我組態。
