[PATCH] Set runlevel 5 if any package provides service(graphical-login).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 yuminstall.py |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index f8aae0d..2d63dac 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1648,10 +1648,8 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
         elif len(self.ayum.tsInfo.matchNaevr(name='plymouth')) > 0:
             anaconda.id.bootloader.args.append("rhgb quiet")
 
-        for tsmbr in self.ayum.tsInfo.matchNaevr(name='gdm') + self.ayum.tsInfo.matchNaevr(name='kdebase-workspace'):
-            if anaconda.id.displayMode == 'g' and not flags.usevnc:
-                anaconda.id.desktop.setDefaultRunLevel(5)
-                break
+        if self.ayum.tsInfo.getProvides("service(graphical-login)") != {} and anaconda.id.displayMode == 'g' and not flags.usevnc:
+            anaconda.id.desktop.setDefaultRunLevel(5)
 
         for repo in self.ayum.repos.listEnabled():
             repo.dirCleanup()
-- 
1.6.0.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux