diff mbox series

[yocto-autobuilder-helper] config.json: set ROOT_HOME to /root for sysvinit with systemd

Message ID 20240109081314.1416559-1-Qi.Chen@windriver.com
State New
Headers show
Series [yocto-autobuilder-helper] config.json: set ROOT_HOME to /root for sysvinit with systemd | expand

Commit Message

ChenQi Jan. 9, 2024, 8:13 a.m. UTC
From: Chen Qi <Qi.Chen@windriver.com>

For sysvinit with systemd, the systemd package will still be build.
This gives us a warning like below:

  WARNING: systemd-1_255.1-r0 do_install: Using /home/root as root
           user's home directory is not fully supported by systemd

Set ROOT_HOME to "/root" to avoid such warning.

Note that when using sysvinit as the init manager, /home/root is totally
valid, it's just that 'systemd' being in DISTRO_FEATURES causes systemd
to be built. So the only purpose of this patch's is to avoid warnings
on autobuilders.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 config.json | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/config.json b/config.json
index 4686068..ad18226 100644
--- a/config.json
+++ b/config.json
@@ -1432,6 +1432,7 @@ 
                 "SANITYTARGETS" : "core-image-sato:do_testimage",
                 "extravars" : [
                     "DISTRO_FEATURES:append = ' systemd usrmerge'",
+                    "ROOT_HOME = '/root'",
                     "VIRTUAL-RUNTIME_init_manager = 'sysvinit'"
                 ]
             },