Bug 1141676
Summary: | anaconda doesn't honor "xconfig --startxonboot --defaultdesktop=KDE" line and starts machine in Gnome post installation. | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Pushpendra Chavan <pchavan> | ||||||||||||||||||
Component: | gdm | Assignee: | Ray Strode [halfline] <rstrode> | ||||||||||||||||||
Status: | CLOSED ERRATA | QA Contact: | Desktop QE <desktop-qa-list> | ||||||||||||||||||
Severity: | medium | Docs Contact: | |||||||||||||||||||
Priority: | medium | ||||||||||||||||||||
Version: | 7.0 | CC: | ayadav, gao, hdegoede, mdomonko, pbokoc, tpelka | ||||||||||||||||||
Target Milestone: | rc | ||||||||||||||||||||
Target Release: | --- | ||||||||||||||||||||
Hardware: | All | ||||||||||||||||||||
OS: | Linux | ||||||||||||||||||||
Whiteboard: | |||||||||||||||||||||
Fixed In Version: | gdm-3.14.2-9.el7 | Doc Type: | Bug Fix | ||||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||
Last Closed: | 2015-11-19 07:13:17 UTC | Type: | Bug | ||||||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||||||
Verified Versions: | Category: | --- | |||||||||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||
Embargoed: | |||||||||||||||||||||
Attachments: |
|
Created attachment 937477 [details]
syslog
Created attachment 937478 [details]
storage.log
Created attachment 937479 [details]
program log
Created attachment 937480 [details]
packaging.log
Created attachment 937481 [details]
ifcfg log
Created attachment 937482 [details]
anaconda.log
(In reply to Pushpendra Chavan from comment #0) > %post --nochroot > tar cvf /mnt/sysimage/root/installation_logs.tar /tmp/*log* > %end Log files are copied to /var/log/anaconda at the end of kickstart %post, so there's no need to do this. --defaultdesktop=KDE requires kdm to be installed, and kdm is not in RHEL-7. anaconda is writing whatever value is in --defaultdesktop= to /etc/sysconfig/desktop as DESKTOP=<desktop>. Since gdm is the only display manager available in RHEL, gdm needs to be able to select the default login session type. *** Bug 1187699 has been marked as a duplicate of this bug. *** The posted workaround in https://access.redhat.com/solutions/1125833 does not work for us. We need to keep gnome-session-xsession and gnome-classic-session so a user can log into GNOME Classic if he/she wants to. This bug still needs to fixed. Hi Simon, The instructions provided in https://access.redhat.com/solutions/1125833 still allow a user to pick GNOME Classic if he/she wants. Even though, the gnome-classic-session package is removed, the menu entries will not go away, because before the package is removed, this command is run: # cp /usr/share/xsessions/gnome-classic.desktop /etc/X11/sessions/3-gnome-classic.desktop This ensures the menu entry is still available after the package is removed. I got an error. See attached screenshot. Created attachment 988643 [details]
Gnome classic login error after removing gnome-classic-session
devack+ as of gdm-3.14.2-8.el7 we will support putting DESKTOP="KDE" in /etc/sysconfig/desktop as a way of changing the default session from GNOME to KDE. Since /etc/sysconfig/desktop wasn't previously supported in Red Hat Enterprise Linux 7, and may, for some users, be unexpectedly lingering from upgrades or old kickstart files, we will move /etc/sysconfig/desktop to /etc/sysconfig/desktop.rpmsave when upgrading from 7.1 or earlier. Users can then decide whether or not to reinstate the file. marking MODIFIED for QA Hi Ray, This build gdm-3.14.2-8.el7 https://brewweb.devel.redhat.com/buildinfo?buildID=447779 is actually broken. The GDM service won't start. Towards the end of "journalctl -u gdm" is this: Jul 17 14:28:14 testbox systemd[1]: gdm.service: main process exited, code=dumped, status=11/SEGV Jul 17 14:28:14 testbox systemd[1]: Unit gdm.service entered failed state. Jul 17 14:28:14 testbox systemd[1]: Triggering OnFailure= dependencies of gdm.service. Jul 17 14:28:14 testbox systemd[1]: gdm.service failed. Jul 17 14:28:14 testbox systemd[1]: gdm.service holdoff time over, scheduling restart. Jul 17 14:28:14 testbox systemd[1]: start request repeated too quickly for gdm.service Jul 17 14:28:14 testbox systemd[1]: Failed to start GNOME Display Manager. Jul 17 14:28:14 testbox systemd[1]: Unit gdm.service entered failed state. Jul 17 14:28:14 testbox systemd[1]: Triggering OnFailure= dependencies of gdm.service. Jul 17 14:28:14 testbox systemd[1]: gdm.service failed. will investigate right away. do you have /etc/sysconfig/desktop or no? I see the problem, building a fix now. Yeah, I didn't have the file :) Thanks for the fix, -9 starts fine now (that is, both with and without /etc/sysconfig/desktop). Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2216.html |
Created attachment 937476 [details] x log Description of problem: Installed Red Hat Enterprise Linux 7 with the following kickstart profile. auth --enableshadow --passalgo=sha512 cdrom xconfig --startxonboot --defaultdesktop=KDE ignoredisk --only-use=vda keyboard --vckeymap=us --xlayouts='us' lang en_US.UTF-8 network --hostname=newrhel7 rootpw --iscrypted $6$naiXhzfyCW2MWKUo$/S6idckbWajv2AJ8XpjBDBLntZy1U0vDyNrYlV7QMKFObkqTAHRdrF7xSBiWyinUHCw6WAwsnzp3OY9xL3J/f. timezone America/New_York --isUtc bootloader --location=mbr --boot-drive=vda autopart --type=lvm clearpart --none --initlabel --drives=vda reboot %packages @^graphical-server-environment @base @core @gnome-desktop @kde-desktop %end %post --nochroot tar cvf /mnt/sysimage/root/installation_logs.tar /tmp/*log* %end This has mentioned that the defaultDesktop shall be KDE, upto RHEL6 this was working perfectly, but in RHEL7, it doesn't work well. Post installation, the machine continues booting in gnome session until and unless we change it manually. Version-Release number of selected component (if applicable): RHEL7 Installation. How reproducible: Always. Steps to Reproduce: 1. Use the attached kickstart or use any kickstart with the same xconfig line and %packages section. 2. Check the machine after installation, it will give gnome firstboot setup agent and boot into gnome session. Actual results: It starts gnome session. Expected results: It shall honor the line and go into KDE. Additional info: Adding logs.