Merge pull request #267012 from alois31/plymouth-unbloat

nixos/plymouth: drop the X11 renderer in the initrd
This commit is contained in:
Sandro 2024-02-27 22:28:27 +01:00 committed by GitHub
commit 9c1ea5e3a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -186,6 +186,8 @@ in
# module might come from a theme
cp ${themesEnv}/lib/plymouth/*.so $out
cp ${plymouth}/lib/plymouth/renderers/*.so $out/renderers
# useless in the initrd, and adds several megabytes to the closure
rm $out/renderers/x11.so
'';
"/etc/plymouth/themes".source = pkgs.runCommand "plymouth-initrd-themes" {} ''
# Check if the actual requested theme is here
@ -271,6 +273,8 @@ in
# module might come from a theme
cp ${themesEnv}/lib/plymouth/*.so $out/lib/plymouth
cp ${plymouth}/lib/plymouth/renderers/*.so $out/lib/plymouth/renderers
# useless in the initrd, and adds several megabytes to the closure
rm $out/lib/plymouth/renderers/x11.so
mkdir -p $out/share/plymouth/themes
cp ${plymouth}/share/plymouth/plymouthd.defaults $out/share/plymouth