From cd2d8fea141761785195c53658a499006c19210b Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Fri, 5 Feb 2021 16:57:30 +0100 Subject: [PATCH] test: clean the module build dir before compiling it otherwise the module won't compile & load after autorelabel reboot, since the target is already built. --- test/testsuite-06.units/load-systemd-test-module.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testsuite-06.units/load-systemd-test-module.service b/test/testsuite-06.units/load-systemd-test-module.service index 323a76c68d..335f38c5b4 100644 --- a/test/testsuite-06.units/load-systemd-test-module.service +++ b/test/testsuite-06.units/load-systemd-test-module.service @@ -8,7 +8,7 @@ Before=sysinit.target shutdown.target autorelabel.service ConditionSecurity=selinux [Service] -ExecStart=sh -x -c 'echo 0 >/sys/fs/selinux/enforce && cd /systemd-test-module && make -f /usr/share/selinux/devel/Makefile load' +ExecStart=sh -x -c 'echo 0 >/sys/fs/selinux/enforce && cd /systemd-test-module && make -f /usr/share/selinux/devel/Makefile clean load' Type=oneshot TimeoutSec=0 RemainAfterExit=yes -- 2.25.1