]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-06-*: also try the installation path for Debian
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 31 Mar 2020 11:19:13 +0000 (13:19 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 31 Mar 2020 12:37:20 +0000 (14:37 +0200)
https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/debian/tests/upstream
used sed to adjust the path. I think it's better to make our script more
flexible.

test/TEST-06-SELINUX/test.sh

index 7a836bbc0340aca01840b08af7a5fd053014c4c0..0acd7a10e8004df6e0a27543ea0871fcfd929d20 100755 (executable)
@@ -46,7 +46,9 @@ test_create_image() {
         cp systemd_test.if $initdir/systemd-test-module
         dracut_install -o sesearch
         dracut_install runcon
-        dracut_install checkmodule semodule semodule_package m4 make /usr/libexec/selinux/hll/pp load_policy sefcontext_compile
+        dracut_install checkmodule semodule semodule_package m4 make load_policy sefcontext_compile
+        dracut_install -o /usr/libexec/selinux/hll/pp # Fedora/RHEL/...
+        dracut_install -o /usr/lib/selinux/hll/pp     # Debian/Ubuntu/...
     )
 }