Browse Source

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: 421b46f8ae
master
Alexander Tsoy 7 years ago committed by Harald Hoyer
parent
commit
fe6c7e0f06
  1. 2
      modules.d/50plymouth/module-setup.sh

2
modules.d/50plymouth/module-setup.sh

@ -6,7 +6,7 @@ pkglib_dir() { @@ -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

Loading…
Cancel
Save