Merge pull request #2305 from ptr1337/plymouthcfg-fix

plymouthcfg: Use plymouth-set-default-theme instead of sed
This commit is contained in:
Adriaan de Groot 2024-04-09 15:50:01 +02:00 committed by GitHub
commit 134b2c8d83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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():