Harald Hoyer fe68ba
From fe6c7e0f06cde65effb3503a47c31ac39aceefb6 Mon Sep 17 00:00:00 2001
Harald Hoyer fe68ba
From: Alexander Tsoy <alexander@tsoy.me>
Harald Hoyer fe68ba
Date: Fri, 23 Mar 2018 11:52:27 +0300
Harald Hoyer fe68ba
Subject: [PATCH] plymouth: fix detection of plymouth directory
Harald Hoyer fe68ba
Harald Hoyer fe68ba
Some distros have both /usr/lib/plymouth and /usr/libexec/plymouth
Harald Hoyer fe68ba
directorirs, so we should check the existance of plymouth-populate-initrd
Harald Hoyer fe68ba
script.
Harald Hoyer fe68ba
Harald Hoyer fe68ba
Fixes: 421b46f8ae89cfe2b62e880a8a5079ee8c1b3aae
Harald Hoyer fe68ba
---
Harald Hoyer fe68ba
 modules.d/50plymouth/module-setup.sh | 2 +-
Harald Hoyer fe68ba
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer fe68ba
Harald Hoyer fe68ba
diff --git a/modules.d/50plymouth/module-setup.sh b/modules.d/50plymouth/module-setup.sh
Harald Hoyer fe68ba
index 5fbca8b0..b51913e8 100755
Harald Hoyer fe68ba
--- a/modules.d/50plymouth/module-setup.sh
Harald Hoyer fe68ba
+++ b/modules.d/50plymouth/module-setup.sh
Harald Hoyer fe68ba
@@ -6,7 +6,7 @@ pkglib_dir() {
Harald Hoyer fe68ba
         _dirs+=" /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/plymouth"
Harald Hoyer fe68ba
     fi
Harald Hoyer fe68ba
     for _dir in $_dirs; do
Harald Hoyer fe68ba
-        if [ -d $_dir ]; then
Harald Hoyer fe68ba
+        if [ -x $_dir/plymouth-populate-initrd ]; then
Harald Hoyer fe68ba
             echo $_dir
Harald Hoyer fe68ba
             return
Harald Hoyer fe68ba
         fi
Harald Hoyer fe68ba