본문으로 바로가기

Ubuntu's bootsplash

category Linux/Ubuntu 2016. 9. 15. 17:39

Bootsplash란?


부팅과정에서의 시각적인 효과 및 화면을 의미한다. 흔히 윈도우 로고와 함께 기어다니던 지렁이를 생각하면 될 것이다.

우분투(16.04, Xenial)의 bootsplash는 다음과 같다.




바탕화면 때문에 이것 저것 보다가 다음과 같은 우분투의 bootsplash 화면을 보게 되었다.




왠지 적용해 보고 싶어 이것저것 찾아보아서 해보았다.

다음은 내가 적용한 방법이다.



먼저 bootsplash 테마를 하나 다운받는다.




혹은 다음과 같이 package를 설치한다.


$ sudo apt-get install plymouth-themes



그러면 다음 경로에 여러 테마가 설치된다.


$ ls -l /usr/share/plymouth/themes/

total 44

lrwxrwxrwx 1 root root   39 Sep 14 14:06 default.grub -> /etc/alternatives/default.plymouth.grub

lrwxrwxrwx 1 root root   34 Sep 14 14:06 default.plymouth -> /etc/alternatives/default.plymouth

drwxr-xr-x 2 root root 4096 Jul 20 05:45 details/

drwxr-xr-x 2 root root 4096 Sep 15 17:02 fade-in/

drwxr-xr-x 2 root root 4096 Sep 15 17:02 glow/

drwxr-xr-x 2 root root 4096 Sep 15 17:02 script/

drwxr-xr-x 2 root root 4096 Sep 15 17:02 solar/

drwxr-xr-x 2 root root 4096 Sep 15 17:02 spinfinity/

drwxr-xr-x 2 root root 4096 Sep 15 17:02 spinner/

drwxr-xr-x 2 root root 4096 Jul 20 05:45 text/

lrwxrwxrwx 1 root root   31 Sep 14 14:06 text.plymouth -> /etc/alternatives/text.plymouth

drwxr-xr-x 2 root root 4096 Jul 20 05:45 tribar/

drwxr-xr-x 2 root root 4096 Sep 15 13:43 ubuntu-logo/

drwxr-xr-x 2 root root 4096 Jul 20 05:49 ubuntu-text/



여기서 update-alternatives 명령을 통해 원하는 테마를 선택한다.


$ sudo update-alternatives --config default.plymouth 

There are 3 choices for the alternative default.plymouth (providing /lib/plymouth/themes/default.plymouth).


  Selection    Path                                                                 Priority   Status

------------------------------------------------------------

* 0            /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth           100       auto mode

  1            /lib/plymouth/themes/solar/solar.plymouth                             10        manual mode

  2            /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo-scale-2.plymouth   99        manual mode

  3            /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth           100       manual mode



그리고 해당 변경사항을 적용시켜준다.


$ sudo update-initramfs -u



그런데 deb패키지 설치는 update-alternatives에 등록이 되는데 apt-get으로 설치하면 등록이 안된다?![각주:1] 

그래서 ln -s 명령으로 /etc/alternatives의 심볼릭 링크를 수동으로 수정하자.


$ sudo ln -fs /usr/share/plymouth/themes/solar/solar.plymouth /etc/alternatives/default.plymouth


마찬가지로 update-initramfs 명령을 사용하여 설정 업데이트를 해준다.

그러면 다음과 같이 종료 및 부팅시에 다음 화면이 출력된다!








[참조]



  1. plymouth-themes doesn't register all themes in alternatives system 참조 (https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/1576391) [본문으로]