Merge pull request #6384 from mschwaig/confirm-multi-user-install-without-systemd

installer: ask for confirmation on multi-user install without systemd
This commit is contained in:
Eelco Dolstra 2022-04-11 11:15:27 +02:00 committed by GitHub
commit 1f5d8e590e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -423,6 +423,18 @@ EOF
fi
done
if [ "$(uname -s)" = "Linux" ] && [ ! -e /run/systemd/system ]; then
warning <<EOF
We did not detect systemd on your system. With a multi-user install
without systemd you will have to manually configure your init system to
launch the Nix daemon after installation.
EOF
if ! ui_confirm "Do you want to proceed with a multi-user installation?"; then
failure <<EOF
You have aborted the installation.
EOF
fi
fi
}
setup_report() {