CentOSが起動画面を修正する


一、起動画面を画像に変更する
1、まずpng形式の写真を探して/rootディレクトリに置く(本文の画像名は800.png)
2、取り付け plymouth
 yum install plymouth-plugin-script

3、配置plymouth
tupというトピックを作成
mkdir /usr/share/plymouth/themes/tup

作成したトピックフォルダにpngファイルをコピーする
cp /root/800.png  /usr/share/plymouth/themes/tup

プロファイルの作成
vim /usr/share/plymouth/themes/tup/tup.plymouth

   以下の内容を貼り付ける
[Plymouth Theme]
Name=Tup
Description=The Urban Penguin
ModuleName=script
[script]
ImageDir=/usr/share/plymouth/themes/tup
ScriptFile=/usr/share/plymouth/themes/tup/tup.script

プロファイルの作成
vim /usr/share/plymouth/themes/tup/tup.script

以下の内容を貼り付ける
wallpaper_image = Image("800.png");
screen_width = Window.GetWidth();
screen_height = Window.GetHeight();
resized_wallpaper_image = wallpaper_image.Scale(screen_width,screen_height);
wallpaper_sprite = Sprite(resized_wallpaper_image);
wallpaper_sprite.SetZ(-100);

以上の構成が完了したら実行
plymouth-set-default-theme  -R tup

4.再起動
そして電源を入れる画面がさっきの画像だと気づきます
5.元の起動インタフェースを復元して実行する
plymouth-set-default-theme -R text

参照先: http://theurbanpenguin.com/wp/index.php/branding-your-centos-boot-splash-screen/