File 0001-Adjust-debianisms.patch of Package plymouth-kcm

From 7032f7d1a4ced90101f9925e9d2ad4f8e3a18cce Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Mon, 1 May 2017 13:34:39 +0200
Subject: [PATCH] Adjust debianisms

- We use dracut
- We have update-alternatives, but don't use it for plymouth
- See also kde#379403
---
 src/helper.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Index: plymouth-kcm-5.24.4/src/helper.cpp
===================================================================
--- plymouth-kcm-5.24.4.orig/src/helper.cpp
+++ plymouth-kcm-5.24.4/src/helper.cpp
@@ -89,7 +89,7 @@ ActionReply PlymouthHelper::save(const Q
     configFile.setPermissions(QFileDevice::ReadOwner | QFileDevice::WriteOwner | QFileDevice::ReadGroup | QFileDevice::ReadOther);
 
     // Special case: Ubuntu derivatives, which work different from everybody else
-    if (hasUpdateAlternatives()) {
+    if (false) {
         // find the .plymouth file in the theme
         QDir dir(QStringLiteral(PLYMOUTH_THEMES_DIR) + theme);
         const QStringList themeFile = dir.entryList(QStringList() << QStringLiteral("*.plymouth"));
@@ -152,11 +152,11 @@ ActionReply PlymouthHelper::save(const Q
     }
 
     QProcess process;
-    qDebug() << "Running update-initramfs -u  now";
-    process.start(QStringLiteral("/usr/sbin/update-initramfs"), QStringList() << QStringLiteral("-u"));
+    qDebug() << "Running dracut -f now";
+    process.start(QStringLiteral("/usr/sbin/dracut"), QStringList() << QStringLiteral("-f"));
     if (!process.waitForStarted()) {
         reply = ActionReply::BackendError;
-        reply.setErrorDescription(i18n("Cannot start initramfs."));
+        reply.setErrorDescription(i18n("Cannot start dracut -f."));
         return reply;
     }
     // We don't know how long this will take. The helper will need to generate N=installed_kernels initrds.
@@ -248,7 +248,7 @@ ActionReply PlymouthHelper::install(cons
     archive->close();
 
     // Special case: Ubuntu derivatives, which work different from everybody else
-    if (hasUpdateAlternatives()) {
+    if (false) {
         // find the .plymouth file in the theme
         QDir dir(themePath);
         const QStringList themeFile = dir.entryList({QStringLiteral("*.plymouth")});
openSUSE Build Service is sponsored by