Skip to content

Commit

Permalink
fix(test): add support for dpkg to pass the test on debian
Browse files Browse the repository at this point in the history
  • Loading branch information
LaszloGombos authored and johannbg committed May 4, 2022
1 parent d634314 commit a7dfdf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/TEST-04-FULL-SYSTEMD/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7dfdf6

Please sign in to comment.