Merge pull request #2745 from samueldr/install/detect-systemd-separately

install-multi-user: Detect and fail lack of systemd separately
This commit is contained in:
Eelco Dolstra 2019-08-28 11:34:23 +02:00 committed by GitHub
commit ad03159e25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -758,9 +758,13 @@ main() {
if [ "$(uname -s)" = "Darwin" ]; then
# shellcheck source=./install-darwin-multi-user.sh
. "$EXTRACTED_NIX_PATH/install-darwin-multi-user.sh"
elif [ "$(uname -s)" = "Linux" ] && [ -e /run/systemd/system ]; then
elif [ "$(uname -s)" = "Linux" ]; then
if [ -e /run/systemd/system ]; then
# shellcheck source=./install-systemd-multi-user.sh
. "$EXTRACTED_NIX_PATH/install-systemd-multi-user.sh"
else
failure "Sorry, the multi-user installation requires systemd on Linux (detected using /run/systemd/system)"
fi
else
failure "Sorry, I don't know what to do on $(uname)"
fi