Skip to content

Commit a7dfdf6

Browse files
LaszloGombosjohannbg
authored andcommitted
fix(test): add support for dpkg to pass the test on debian
1 parent d634314 commit a7dfdf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/TEST-04-FULL-SYSTEMD/test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ test_setup() {
8282
inst_simple ./fstab /etc/fstab
8383
if type -P rpm &> /dev/null; then
8484
rpm -ql systemd | xargs -r "$DRACUT_INSTALL" ${initdir:+-D "$initdir"} -o -a -l
85+
elif type -P dpkg &> /dev/null; then
86+
dpkg -L systemd | xargs -r "$DRACUT_INSTALL" ${initdir:+-D "$initdir"} -o -a -l
8587
elif type -P pacman &> /dev/null; then
8688
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
8789
rm "$initdir"/usr/lib/systemd/system/sysinit.target.wants/systemd-firstboot.service

0 commit comments

Comments
 (0)