From: Laszlo Gombos Date: Wed, 4 May 2022 02:11:59 +0000 (+0000) Subject: fix(test): add support for dpkg to pass the test on debian X-Git-Tag: 057~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7dfdf6acbf7a87fd2735541f06a062126966f69;p=thirdparty%2Fdracut.git fix(test): add support for dpkg to pass the test on debian --- diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh index c44151b9b..b9df92067 100755 --- a/test/TEST-04-FULL-SYSTEMD/test.sh +++ b/test/TEST-04-FULL-SYSTEMD/test.sh @@ -82,6 +82,8 @@ test_setup() { inst_simple ./fstab /etc/fstab if type -P rpm &> /dev/null; then rpm -ql systemd | xargs -r "$DRACUT_INSTALL" ${initdir:+-D "$initdir"} -o -a -l + elif type -P dpkg &> /dev/null; then + dpkg -L systemd | xargs -r "$DRACUT_INSTALL" ${initdir:+-D "$initdir"} -o -a -l elif type -P pacman &> /dev/null; then pacman -Q -l systemd | while read -r _ a; do printf -- "%s\0" "$a"; done | xargs -0 -r "$DRACUT_INSTALL" ${initdir:+-D "$initdir"} -o -a -l rm "$initdir"/usr/lib/systemd/system/sysinit.target.wants/systemd-firstboot.service