Blame SOURCES/0588-test-install-root-create-referenced-targets.patch
|
|
b677e7 |
From 55cde82204724df756a198da691471f2f3f83d5a Mon Sep 17 00:00:00 2001
|
|
|
b677e7 |
From: David Tardon <dtardon@redhat.com>
|
|
|
b677e7 |
Date: Wed, 31 Mar 2021 10:08:31 +0200
|
|
|
b677e7 |
Subject: [PATCH] test-install-root: create referenced targets
|
|
|
b677e7 |
|
|
|
b677e7 |
(cherry picked from commit cd228002ccedb927b4531a4b7dd9ea7015fdb657)
|
|
|
b677e7 |
|
|
|
b677e7 |
Related: #1835351
|
|
|
b677e7 |
---
|
|
|
b677e7 |
src/test/test-install-root.c | 6 ++++++
|
|
|
b677e7 |
1 file changed, 6 insertions(+)
|
|
|
b677e7 |
|
|
|
b677e7 |
diff --git a/src/test/test-install-root.c b/src/test/test-install-root.c
|
|
|
b677e7 |
index fe1ca5b16f..f8b41b04db 100644
|
|
|
b677e7 |
--- a/src/test/test-install-root.c
|
|
|
b677e7 |
+++ b/src/test/test-install-root.c
|
|
|
b677e7 |
@@ -1061,6 +1061,12 @@ int main(int argc, char *argv[]) {
|
|
|
b677e7 |
p = strjoina(root, "/usr/lib/systemd/system-preset/");
|
|
|
b677e7 |
assert_se(mkdir_p(p, 0755) >= 0);
|
|
|
b677e7 |
|
|
|
b677e7 |
+ p = strjoina(root, "/usr/lib/systemd/system/multi-user.target");
|
|
|
b677e7 |
+ assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0);
|
|
|
b677e7 |
+
|
|
|
b677e7 |
+ p = strjoina(root, "/usr/lib/systemd/system/graphical.target");
|
|
|
b677e7 |
+ assert_se(write_string_file(p, "# pretty much empty", WRITE_STRING_FILE_CREATE) >= 0);
|
|
|
b677e7 |
+
|
|
|
b677e7 |
test_basic_mask_and_enable(root);
|
|
|
b677e7 |
test_linked_units(root);
|
|
|
b677e7 |
test_default(root);
|