]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/home/user-record-util.c
homed: allow overriding the root directory for home dirs via env var (i.e. use a...
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Oct 2021 20:20:25 +0000 (22:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Oct 2021 14:00:34 +0000 (16:00 +0200)
commit2700fecdb33058a4a6119880978f92a01499f31a
tree580868fd1d8a06bc6ab59a698ff9fa0f3fea4856
parent86019efa4416d7b548cab321c15bc22a65463786
homed: allow overriding the root directory for home dirs via env var (i.e. use a different path than /home/)

This is a debugging feature. It's sometimes incredibly useful to be able
to run a second instance of homed that operates on another dir than
/home/.

Specifically, if you build homed from the source tree you can now run an
instance of it pretty reasonably directly from the build tree via:

  sudo SYSTEMD_HOME_DEBUG_SUFFIX=foo SYSTEMD_HOMEWORK_PATH=$(pwd)/build/systemd-homework SYSTEMD_HOME_ROOT=/home/foo ./build/systemd-homed

And then talk to it via

  sudo SYSTEMD_HOME_DEBUG_SUFFIX=foo homectl …

(you might need to tweak your dbus policy for this to work fully though)
src/basic/user-util.c
src/basic/user-util.h
src/home/homed-manager.c
src/home/homework.c
src/home/user-record-util.c
src/shared/user-record.c