machine-id-setup: use isempty() instead of empty_or_root()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 24 May 2024 16:45:07 +0000 (01:45 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 24 May 2024 16:45:10 +0000 (01:45 +0900)
commit9ab78ad1097a8ee3cc04416bd8749acad0cfcf8e
tree6b8fd52f5a5e32fddc4072a4b4d602881060e255
parent15875231c5dae9aab4a0bd86690f2f19690b9514
machine-id-setup: use isempty() instead of empty_or_root()

This effectively reverts ba540e9f1c29b430ac916918410c27171d14ab95.

https://github.com/systemd/systemd/pull/32915#discussion_r1608258136
> In many cases we allow --root=/ as a mechanism for forcing an "offline" mode,
> while still operating on the root dir. if we do the getenv_for_pid() thing
> below I'd claim this is very much an "online" operation, and hence --root=/
> should really disable that.
src/shared/machine-id-setup.c