Unverified Commit 9c1ea5e3 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #267012 from alois31/plymouth-unbloat

nixos/plymouth: drop the X11 renderer in the initrd
parents 4e6ae964 46bf5858
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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