]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-06-SELINUX: Disable RuntimeBuildSources= 33644/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 5 Jul 2024 17:20:42 +0000 (19:20 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 5 Jul 2024 17:20:42 +0000 (19:20 +0200)
Otherwise fixfiles will try to relabel it which could potentially
lead to disaster. We also change the recommendation in HACKING.md
to set the default so that TEST-06-SELINUX can override it.

docs/HACKING.md
test/TEST-06-SELINUX/meson.build

index 5b1e355327757e928e38e33d64c8ff4e1f1070db..e05f029d9094ea5ef2ba757f615df45a8a19eacb 100644 (file)
@@ -52,7 +52,7 @@ image all the time when iterating on a patch, add the following to
 
 ```conf
 [Host]
-RuntimeBuildSources=yes
+@RuntimeBuildSources=yes
 ```
 
 After enabling this setting, the source and build directories will be mounted to
index 5036b64d9a618347d1aea0846b30cb43a9317d49..110b65fbd7a332e95af3c1a368a8b10717155627 100644 (file)
@@ -8,6 +8,9 @@ integration_tests += [
                 # Use 'auto' to automatically fallback on non-uefi architectures.
                 'firmware' : 'auto',
                 'vm' : true,
+                # Make sure we don't mount anything with virtiofs as otherwise fixfiles will try to relabel
+                # it.
+                'mkosi-args' : integration_test_template['mkosi-args'] + ['--runtime-build-sources=no'],
         },
 ]