wait for systemd fully started before first login (#2979)

This commit is contained in:
lanefu 2021-07-06 22:32:37 -04:00 committed by GitHub
parent e296ce223b
commit 71f67e664e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,6 +270,10 @@ if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then
desktop_lightdm=$(dpkg-query -W -f='${db:Status-Abbrev}\n' lightdm 2>/dev/null)
desktop_gdm3=$(dpkg-query -W -f='${db:Status-Abbrev}\n' gdm3 2>/dev/null)
echo -e "\nWaiting for system to finish booting...\n"
systemctl is-system-running --wait
if [ "$IMAGE_TYPE" != "nightly" ]; then
if [ "$BRANCH" == "dev" ]; then
echo -e "\nYou are using an Armbian preview build !!!"