All of lore.kernel.org
 help / color / mirror / Atom feed
* thud systemd root home wrong
@ 2019-01-11 14:44 Jean-Francois Dagenais
  2019-01-11 15:24 ` Jérôme Carretero
  2019-01-11 15:37 ` Burton, Ross
  0 siblings, 2 replies; 10+ messages in thread
From: Jean-Francois Dagenais @ 2019-01-11 14:44 UTC (permalink / raw)
  To: poky

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@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@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@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!

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-01-15  9:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-11 14:44 thud systemd root home wrong Jean-Francois Dagenais
2019-01-11 15:24 ` Jérôme Carretero
2019-01-11 15:37 ` Burton, Ross
2019-01-11 15:53   ` Jean-Francois Dagenais
2019-01-11 15:55     ` Burton, Ross
2019-01-14 18:18       ` Jean-Francois Dagenais
2019-01-14 18:35         ` Jean-Francois Dagenais
2019-01-15  0:42           ` Burton, Ross
2019-01-15  1:08             ` Jean-Francois Dagenais
2019-01-15  9:34               ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.