Whamcloud - gitweb
e2scrub: test for the presence of systemd using test -e /run/systemd/system
authorTheodore Ts'o <tytso@mit.edu>
Wed, 1 May 2024 03:54:26 +0000 (23:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 May 2024 03:54:26 +0000 (23:54 -0400)
commit7480dcacb0b79faf8c7608ce136c37d6cc6e2254
tree34ee92f6eed9636ecfb41f267194b30b3163fc7a
parent3ab99d9b6022ffa369e8ce7ae5643a30028d0db1
e2scrub: test for the presence of systemd using test -e /run/systemd/system

Debian has a package called "systemctl" which provides a systemctl
executable to "manage services without systemd".  So test for whether
we have a fully functional systemd system by checking for the
existence of /run/systemd/system instead testing for the presence of
the command named systemctl.

Addresses-Debian-Bug: #1070107
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
scrub/e2scrub_all.in