From a7dfdf6acbf7a87fd2735541f06a062126966f69 Mon Sep 17 00:00:00 2001 From: Laszlo Gombos Date: Wed, 4 May 2022 02:11:59 +0000 Subject: [PATCH] fix(test): add support for dpkg to pass the test on debian --- test/TEST-04-FULL-SYSTEMD/test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh index c44151b9b0..b9df920672 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