Skip to content

Commit 42e9d18

Browse files
aafeijoo-susejohannbg
authored andcommitted
fix(plymouth): hide dpkg-architecture stderr messages
dpkg-architecture prints warnings and errors to stderr. If the system does not have gcc installed, it issues a warning: dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) This fix checks only the value of the queried variable.
1 parent 7011229 commit 42e9d18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
pkglib_dir() {
44
local _dirs="/usr/lib/plymouth /usr/libexec/plymouth/"
55
if find_binary dpkg-architecture &> /dev/null; then
6-
_dirs+=" /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/plymouth"
6+
local _arch
7+
_arch=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null)
8+
[ -n "$_arch" ] && _dirs+=" /usr/lib/$_arch/plymouth"
79
fi
810
for _dir in $_dirs; do
911
if [ -x "$dracutsysrootdir""$_dir"/plymouth-populate-initrd ]; then

0 commit comments

Comments
 (0)