Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
30.2.3. 核心
When the kernel is loaded, it immediately initializes and configures the computer's memory and configures the various hardware attached to the system, including all processors, I/O subsystems, and storage devices. It then looks for the compressed
initramfs
image(s) in a predetermined location in memory, decompresses it directly to /sysroot/
, and loads all necessary drivers. Next, it initializes virtual devices related to the file system, such as LVM or software RAID, before completing the initramfs
processes and freeing up all the memory the disk image once occupied.
接著核心會建立一個 root 裝置,掛載 root 分割區為唯獨,並釋放所有未使用的記憶體。
這時核心已經載入記憶體和運算。但是,由於尚未載入任何使用者應用程式至系統中,系統並不能實際上執行任何運作。
核心執行
/sbin/init
程式來設定使用者環境。