plymouthcfg: Use plymouth-set-default-theme instead of sed

Currently we are running into an issue, when setting the default theme via "sed", since the "[DAEMON]" entry in /etc/plymouth/plymouthd.conf is commented, which results into that the theme is not correctly applied.

Signed-off-by: Peter Jung <admin@ptr1337.dev>
This commit is contained in:
Peter Jung 2024-03-29 20:05:41 +01:00
parent 8440a6a5dd
commit 2fd98c913a
No known key found for this signature in database
GPG Key ID: C3C4820857F654FE
2 changed files with 2 additions and 3 deletions

View File

@ -24,6 +24,7 @@ This release contains contributions from (alphabetically by first name):
- *displaymanager* module can configure an alternate SDDM configuration file.
- *networkcfg* a bug affecting NetPlan + NetworkManager was fixed.
- *initcpiocfg* Add microcode hook to initcpiocfg
- *plymouthcfg* Use plymouth-set-default-theme to avoid issues with configuration
# 3.3.4 (2024-02-27)

View File

@ -48,9 +48,7 @@ class PlymouthController:
def setTheme(self):
plymouth_theme = libcalamares.job.configuration["plymouth_theme"]
target_env_call(["sed", "-e", 's|^.*Theme=.*|Theme=' +
plymouth_theme + '|', "-i",
"/etc/plymouth/plymouthd.conf"])
target_env_call(["plymouth-set-default-theme", plymouth_theme])
def run(self):
if detect_plymouth():