]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(test): add support for dpkg to pass the test on debian
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Wed, 4 May 2022 02:11:59 +0000 (02:11 +0000)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 4 May 2022 07:30:45 +0000 (07:30 +0000)
test/TEST-04-FULL-SYSTEMD/test.sh

index c44151b9b0cefaee882bed3b5df477d0b272394f..b9df920672b9782b3ad87525819a26cd43d651ef 100755 (executable)
@@ -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