]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
feat(plymouth): do not check plymouth-populate-initrd for "nash"
authorBenjamin Drung <benjamin.drung@canonical.com>
Wed, 8 Oct 2025 20:03:46 +0000 (22:03 +0200)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Tue, 28 Oct 2025 23:56:49 +0000 (19:56 -0400)
Commit f9749f368f1e ("plymouth: use
/usr/libexec/plymouth/plymouth-populate-initrd if possible") checked
`plymouth-populate-initrd` not not contain `nash` in 2009. The current
Plymouth version does not contain this string and there were no reason
given for this check.

Drop checking `plymouth-populate-initrd` for not containing `nash`.

modules.d/45plymouth/module-setup.sh

index a3fc3d3d9193a19d9d0505c10252c986f42734a7..21e6ea1a81d31d10bc5136b3a9b13b3a36fdda6d 100755 (executable)
@@ -54,8 +54,7 @@ depends() {
 # called by dracut
 install() {
     PKGLIBDIR=$(pkglib_dir)
-    if grep -q nash "${dracutsysrootdir-}${PKGLIBDIR}"/plymouth-populate-initrd \
-        || [ ! -x "${dracutsysrootdir-}${PKGLIBDIR}"/plymouth-populate-initrd ]; then
+    if [ ! -x "${dracutsysrootdir-}${PKGLIBDIR}"/plymouth-populate-initrd ]; then
         # shellcheck disable=SC1090
         . "$moddir"/plymouth-populate-initrd.sh
     else