From: Alexander Tsoy Date: Fri, 23 Mar 2018 08:52:27 +0000 (+0300) Subject: plymouth: fix detection of plymouth directory X-Git-Tag: 048~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe6c7e0f06cde65effb3503a47c31ac39aceefb6;p=thirdparty%2Fdracut.git plymouth: fix detection of plymouth directory 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 --- diff --git a/modules.d/50plymouth/module-setup.sh b/modules.d/50plymouth/module-setup.sh index 5fbca8b00..b51913e82 100755 --- a/modules.d/50plymouth/module-setup.sh +++ b/modules.d/50plymouth/module-setup.sh @@ -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