Linux のブート時にスプラッシュアニメーションを表示する plymouth 。 Debian(gnmoe) をインストールすると playmouth は入っているけれども有効になっていないみたい。
環境
- Debian Testing ( Debian 13 : 2024/07/09時点 )
初期の設定
plymouth は以下のようにコメントアウトされています。
$ cat /etc/plymouth/plymouthd.conf
# Administrator customizations go in this file
#[Daemon]
#Theme=emerald
#ShowDelay=0
テーマ自体は、ファイルが用意されているようです。
$ ls -alh /usr/share/plymouth/themes/
合計 52K
drwxr-xr-x 13 root root 4.0K 7月 9 20:03 .
drwxr-xr-x 3 root root 4.0K 7月 9 20:03 ..
lrwxrwxrwx 1 root root 40 7月 12 2023 debian-theme -> ../../desktop-base/active-theme/plymouth
drwxr-xr-x 2 root root 4.0K 7月 9 20:03 details
drwxr-xr-x 2 root root 4.0K 6月 30 14:48 emerald
drwxr-xr-x 2 root root 4.0K 6月 30 14:48 futureprototype
drwxr-xr-x 2 root root 4.0K 6月 30 14:48 homeworld
drwxr-xr-x 2 root root 4.0K 6月 30 14:48 joy
drwxr-xr-x 2 root root 4.0K 6月 30 14:48 lines
drwxr-xr-x 2 root root 4.0K 6月 30 14:48 moonlight
drwxr-xr-x 2 root root 4.0K 6月 30 14:48 softwaves
drwxr-xr-x 2 root root 4.0K 6月 30 14:48 spacefun
drwxr-xr-x 2 root root 4.0K 7月 9 20:03 text
drwxr-xr-x 2 root root 4.0K 7月 9 20:03 tribar
debian-theme がリンクになってますね。実体は、
$ ls -alh /usr/share/desktop-base/active-theme
lrwxrwxrwx 1 root root 31 6月 30 14:32 /usr/share/desktop-base/active-theme -> /etc/alternatives/desktop-theme
$ ls -alh /usr/share/desktop-base/active-theme/plymouth
lrwxrwxrwx 1 root root 31 7月 12 2023 /usr/share/desktop-base/active-theme/plymouth -> ../../plymouth/themes/emerald
$ ls -alh /etc/alternatives/desktop-theme
lrwxrwxrwx 1 root root 37 6月 30 14:32 /etc/alternatives/desktop-theme -> /usr/share/desktop-base/emerald-theme
いろいろ複雑なことになってますね。
テーマを設定する
先にあった中で、いろんなエフェクトがありますが、わかりやすいものとして joy を選んでみました。
# plymouth-set-defaualt-theme joy
変更はどこに入っているのかな?
$ cat /etc/plymouth/plymouthd.conf
# Administrator customizations go in this file
#[Daemon]
#Theme=emerald
#ShowDelay=0
[Daemon]
Theme=joy
ここに反映しているみたいです。
更に有効にするにはいくつかの作業が必要です。
initramfs を更新しないといけないのですが、
# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.9.7-amd64
W: plymouth: The plugin label-pango.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes package to fix this.
エラーが出ました。指示通り、 plymouth-themes をインストールします。
# apt install plymouth-themes
再度 initramfs を更新します。
# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.9.7-amd64
更に起動パラメータをの設定が必要となります。
/etc/defaults/grub
の以下の行を変更します。
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
↓
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
grub に反映します。
# update-grub
これで起動時に以下のスプラッシュがアニメーション表示されます。