]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
plymouth: fix detection of plymouth directory
authorAlexander Tsoy <alexander@tsoy.me>
Fri, 23 Mar 2018 08:52:27 +0000 (11:52 +0300)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 23 Mar 2018 10:31:43 +0000 (11:31 +0100)
Some distros have both /usr/lib/plymouth and /usr/libexec/plymouth
directorirs, so we should check the existance of plymouth-populate-initrd
script.

Fixes: 421b46f8ae89cfe2b62e880a8a5079ee8c1b3aae
modules.d/50plymouth/module-setup.sh

index 5fbca8b00f65bf725beabca6aa5a74fa26e377c5..b51913e821e4f6f171d69728b47659ad860ae21d 100755 (executable)
@@ -6,7 +6,7 @@ pkglib_dir() {
         _dirs+=" /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/plymouth"
     fi
     for _dir in $_dirs; do
-        if [ -d $_dir ]; then
+        if [ -x $_dir/plymouth-populate-initrd ]; then
             echo $_dir
             return
         fi