萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 作業系統 >  >> Linux 教學

Linux 核心啟動畫面 Bootsplash 實作:補丁、編譯、主題整合與 GRUB 參數

Linux 原版核心不含 Bootsplash(開機進度條與 Console 背景圖),需打補丁實現。

實作步驟

  1. 下載並套用補丁:至 bootsplash.org 下載對應核心版本補丁,套用後 menuconfig 將出現相關選項。
  2. 編譯核心:make menuconfig 勾選 Bootsplash 選項,編譯安裝核心。
  3. 安裝工具與主題:安裝 splashutilities 並下載主題(官網提供),解壓後編輯 .cfg 修正圖片絕對路徑。
  4. 整合主題到 initrd:
    /sbin/splash -s -f /etc/bootsplash/themes/yourtheme/config/bootsplash-1024x768.cfg > /boot/initrd.splash
    僅支援使用 initrd 的系統。
  5. 修改 GRUB 參數:工具會提示需新增的啟動參數,編輯 /boot/grub/menu.lst 對應修改。
  6. 重啟生效:reboot 即可看到開機畫面。
copyright © 萬盛學電腦網 all rights reserved