[poky] thud systemd root home wrong
Jean-Francois Dagenais
jeff.dagenais at gmail.com
Fri Jan 11 06:44:04 PST 2019
Hi all,
Although there is 0005-Make-root-s-home-directory-configurable.patch and EXTRA_OEMESON += "-Droothomedir=${ROOT_HOME}".
Here's the test setup and result:
root at host-01:~# cat /lib/systemd/system/testroothome.service
[Unit]
Description=Test root home
[Service]
User=root
ExecStart=/bin/bash -c "echo HOME:$HOME"
[Install]
WantedBy=multi-user.target
root at host-01:~# systemctl status testroothome
● testroothome.service - Test root home
Loaded: loaded (/lib/systemd/system/testroothome.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Jan 11 14:32:10 host-01 systemd[1]: Started Test root home.
Jan 11 14:32:10 host-01 bash[1971]: HOME:/root
root at host-01:~# echo $HOME
/home/root
/root is incorrect as shown last. ROOT_HOME is set in my untouched bitbake.conf from poky.
Very preliminary inspection of v239 of systemd's source in it's workdir suggests that although the meson build config is changed to accept roothomedir as an option, the source code doesn't mention it.
Looking at the history of xxxx-Make-root-s-home-directory-configurable.patch, it seems to have suffered quite a lot through the systemd upgrades to the point it has become useless?
Before I dig deeper, I wanted to check with the community.
Thanks for any pointers!
More information about the poky
mailing list