Skip to contentSkip to conversation

config.json: set ROOT_HOME to /root for sysvinit with systemd

PATCH New [email protected] 1 participant 1 message Jan 9, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config.json: set ROOT_HOME to /root for sysvinit with systemd

From: Chen Qi <[email protected]>

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.

---
 config.json | 1 +
 1 file changed, 1 insertion(+)
config.json +1 -0
index 4686068..ad18226 100644
@@ -1432,6 +1432,7 @@
                 "SANITYTARGETS" : "core-image-sato:do_testimage",
                 "extravars" : [
                     "DISTRO_FEATURES:append = ' systemd usrmerge'",
+                    "ROOT_HOME = '/root'",
                     "VIRTUAL-RUNTIME_init_manager = 'sysvinit'"
                 ]
             },
Signature · 1 line
2.34.1