Install plymouth

This commit is contained in:
Jake Howard 2020-05-22 12:54:31 +01:00
parent 96683ef12c
commit 8e56440893
Signed by: jake
GPG Key ID: 57AFB45680EDD477
3 changed files with 49 additions and 5 deletions

View File

@ -2,3 +2,4 @@ skip_list:
- 305
- 401
- 301
- 503

3
files/plymouth.conf Normal file
View File

@ -0,0 +1,3 @@
[Daemon]
Theme=ibm
ShowDelay=1

View File

@ -21,11 +21,6 @@
- lightdm
- lightdm-gtk-greeter
- name: Enable lightdm
systemd:
name: lightdm
enabled: true
- name: Disable PC Speaker
modprobe:
name: pcspkr
@ -91,3 +86,48 @@
systemd:
name: nohang-desktop
enabled: true
- name: Install plymouth
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: item not in installed_packages.stdout_lines
loop:
- plymouth
- plymouth-theme-ibm-git
- name: Set kernel parameters
lineinfile:
path: /etc/default/grub
regexp: ^GRUB_CMDLINE_LINUX_DEFAULT=
line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash loglevel=3 rd.udev.log_priority=3 vt.global_cursor_default=0"
register: kernel_parameters
- name: Install plymouth config
copy:
src: ./files/plymouth.conf
dest: /etc/plymouth/plymouthd.conf
mode: 0644
register: plymouth_config
- name: Set hooks
lineinfile:
path: /etc/mkinitcpio.conf
regexp: ^HOOKS=
line: HOOKS=(base udev plymouth autodetect keyboard keymap modconf block plymouth-encrypt filesystems fsck)
register: initrd_hooks
- name: Rebuild initrd
command: mkinitcpio -P
when: plymouth_config.changed or initrd_hooks.changed
- name: Rebuild GRUB config
command: grub-mkconfig -o /boot/grub/grub.cfg
when: kernel_parameters.changed
- name: Enable lightdm
systemd:
name: lightdm-plymouth
enabled: true