Commit a1296626 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm release-upgrade: try be assured we have dm service is enabled

parent 1c2ad8b2
...@@ -207,15 +207,27 @@ __check_system() ...@@ -207,15 +207,27 @@ __check_system()
docmd epm --skip-installed install systemd || fatal docmd epm --skip-installed install systemd || fatal
fi fi
# FIXME: will GUI closed during that changes? # switch from prefdm: https://bugzilla.altlinux.org/show_bug.cgi?id=26405#c47
# switch from prefdm: https://bugzilla.altlinux.org/show_bug.cgi?id=26405#c52 if is_active_systemd systemd ; then
if is_active_systemd systemd && serv display-manager status >/dev/null || serv prefdm status >/dev/null ; then if serv display-manager exists || serv prefdm exists ; then
# docmd serv dm off # don't stop running X server!
docmd systemctl disable prefdm.service # docmd serv dm off
docmd systemctl disable display-manager.service docmd serv disable prefdm
docmd systemctl enable display-manager.service docmd serv disable display-manager
# docmd systemctl enable sddm.service docmd serv enable display-manager
# docmd systemctl enable lightdm.service
# $ epm sf dm.service
# xinitrc: /lib/systemd/system/dm.service
# gdm: /lib/systemd/system/gdm.service
# lightdm: /lib/systemd/system/lightdm.service
# lxde-lxdm: /lib/systemd/system/lxdm.service
# xinitrc: /lib/systemd/system/prefdm.service
# sddm: /lib/systemd/system/sddm.service
# enable first available DM
for i in lightdm sddm lxde-lxdm gdm ; do
serv $i exists && docmd serv enable $i && break
done
fi
fi fi
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment