From 766cad3ad332e07bdd8eb8d8968f14751e1e351b Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 12 Sep 2016 21:36:03 -0400 Subject: [PATCH] templates: Enusre basic.target.wants dir exists for rngd There's something racy here; in my Atomic Workstation CI/CD I'm seeing: ``` 01:12:43 symlink /lib/systemd/system/rngd.service etc/systemd/system/basic.target.wants/rngd.service 01:12:43 FileNotFoundError: [Errno 2] No such file or directory: '/lib/systemd/system/rngd.service' -> '/var/tmp/lorax.7cgdtz1_/installtree/etc/systemd/system/basic.target.wants/rngd.service' ``` Rather than debug this right now, let's just make sure it exists, like we do right above for `tmp.mount`. (cherry picked from commit 4f1f118cee2fd72c0be90c4ae47e7d2d40d84c21) Signed-off-by: Brian C. Lane Resolves: rhbz#1377430 --- share/runtime-postinstall.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl index 836d4603..bba56308 100644 --- a/share/runtime-postinstall.tmpl +++ b/share/runtime-postinstall.tmpl @@ -27,6 +27,7 @@ mkdir etc/systemd/system/local-fs.target.wants/ symlink /lib/systemd/system/tmp.mount etc/systemd/system/local-fs.target.wants/tmp.mount ## Start rngd +mkdir etc/systemd/system/basic.target.wants/ symlink /lib/systemd/system/rngd.service etc/systemd/system/basic.target.wants/rngd.service ## Disable unwanted systemd services