Update 2 files
- /home/.chezmoiscripts/universal/run_onchange_after_61-plymouth-settings.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl
This commit is contained in:
parent
3e513c852f
commit
f485de8511
2 changed files with 9 additions and 3 deletions
|
@ -66,4 +66,12 @@ fi
|
|||
|
||||
### Note: ubuntu-default-greyscale-wallpaper.png symlink to whiteish gray background
|
||||
|
||||
### Set appropriate platform-specific icon in plymouth theme
|
||||
if [ -f '/usr/local/share/plymouth/themes/{{ .theme }}/icons/{{ .host.distro.id }}.png' ]; then
|
||||
sudo cp -f '/usr/local/share/plymouth/themes/{{ .theme }}/icons/{{ .host.distro.id }}.png' '/usr/local/share/plymouth/themes/{{ .theme }}/icon.png'
|
||||
logg success 'Added platform-specific icon to {{ .theme }} Plymouth theme'
|
||||
else
|
||||
logg warn 'The `{{ .host.distro.id }}.png` icon is not available in the icons folder insider the {{ .theme }} Plymouth theme'
|
||||
fi
|
||||
|
||||
{{ end -}}
|
||||
|
|
|
@ -66,9 +66,7 @@ fi
|
|||
if [ "$DEBUG_MODE" != 'true' ]; then
|
||||
if command -v update-initramfs > /dev/null; then
|
||||
logg info 'Running `sudo update-initramfs -u`'
|
||||
if [ "$DEBUG_MODE" != 'true' ]; then
|
||||
sudo update-initramfs -u
|
||||
fi
|
||||
sudo update-initramfs -u
|
||||
logg success 'Updated kernel / initrd images for Plymouth'
|
||||
elif command -v dracut > /dev/null; then
|
||||
logg info 'Running `sudo dracut --regenerate-all -f`'
|
||||
|
|
Loading…
Reference in a new issue