Bug 20022

Summary: incorrect /etc/sysconfig/desktop format
Product: Mageia Reporter: Bit Twister <bittwister2>
Component: Release (media or process)Assignee: ISO building group <isobuild>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: ennael1, kde, marja11, sysadmin-bugs, thierry.vignaud
Version: CauldronKeywords: 6sta2
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Bit Twister 2016-12-24 13:56:52 CET
Description of problem:  6_s2:

incorrect /etc/sysconfig/desktop format

Clean network install has
# cat /etc/sysconfig/desktop
DISPLAYMANAGER=kdm
DESKTOP=KDE4

initscripts posttrans scriptlet would have converted it to 
DISPLAYMANAGER=kdm DESKTOP=KDE4

Whatever package created /etc/sysconfig/desktop with
DISPLAYMANAGER=kdm
DESKTOP=KDE4
needs to create /etc/sysconfig/desktop.rpmnew
if /etc/sysconfig/desktop is to have different contents.

Prior 6_sta1 installs had
DISPLAYMANAGER=sddm

Whatever package created /etc/sysconfig/desktop with
DISPLAYMANAGER=sddm
needs to create /etc/sysconfig/desktop.rpmnew
if /etc/sysconfig/desktop is to have different contents in the event system admin has set different values.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Clean network install
2.  select Gnome, kde, and xfce desktop environments.
Comment 1 Marja Van Waes 2016-12-25 11:43:47 CET

My (equally wrong) desktop file here has:

-rwxr-xr-x   1 root root    32 okt 24 19:33 desktop*

The time stamp is from during the traditional install that I later updated to cauldron.

There were no packages pushed at that time on October 24.

Also, neither Sophie nor dnf repoquery tell me where that file comes from:
[root@localhost marja]# LANGUAGE=C dnf repoquery -f /etc/sysconfig/desktop
Last metadata expiration check: 0:00:27 ago on Sun Dec 25 11:36:03 2016 CET.
[root@localhost marja]# 

So I assume Bit Twister's  /etc/sysconfig/desktop  was written during his "6sta2" network install.

Apparently netinstall isos do more than only pulling in stage2, I can't believe stage2 decides what the content of that desktop file should be.

CC'ing KDE team and Thierry, and assigning to the isobuilders for now (even if I didn't find a "KDE" string in bcd, either :-/)

@ Bit Twister

If you didn't change that file: Is the time stamp of that file from during install for you, too?
If so, can you please attach /root/drakx/report.bug.xz ?
If not, and if you did not manually change it, then please attach the journalctl log from when the time stamp changed.

Keywords: (none) => 6sta2, NEEDINFO
CC: (none) => ennael1, kde, marja11, sysadmin-bugs, thierry.vignaud
Component: RPM Packages => Release (media or process)
Assignee: bugsquad => isobuild

Comment 2 Marja Van Waes 2016-12-25 11:58:19 CET
However, there is still KDE in perl-install/any.pm sub autologin
Comment 3 Bit Twister 2016-12-25 12:49:31 CET
(In reply to Marja van Waes from comment #1)
> 
> My (equally wrong) desktop file here has:
> 
> -rwxr-xr-x   1 root root    32 okt 24 19:33 desktop*
> 
> The time stamp is from during the traditional install that I later updated
> to cauldron.
> 
> There were no packages pushed at that time on October 24.
> 
> Also, neither Sophie nor dnf repoquery tell me where that file comes from:
> [root@localhost marja]# LANGUAGE=C dnf repoquery -f /etc/sysconfig/desktop
> Last metadata expiration check: 0:00:27 ago on Sun Dec 25 11:36:03 2016 CET.
> [root@localhost marja]# 

Yup, rpm does not show who owns the file. I had rpm extract all the package scripts and none of the 357 rpms with scripts changes any values.
initscripts changed format but not values.

Makes you wonder about ~/.desktop files.

> So I assume Bit Twister's  /etc/sysconfig/desktop  was written during his
> "6sta2" network install.

Yes that is what happened.

> Apparently netinstall isos do more than only pulling in stage2, I can't
> believe stage2 decides what the content of that desktop file should be.

Guessing stage2 did not make the decision. I had a three week, or so, old network install which had DISPLAYMANAGER=sddm only. After some k* update it was converted to 
DISPLAYMANAGER=kdm
DESKTOP=KDE4


 @ Bit Twister
> 
> If you didn't 

Sorry. All requested information journal/log dumps are wiped as my day_one_install, new_install, install_changes script run.
My scripts checks logs for _fault_words='bad rpm|fail|Broken pipe|error|mismatch|missing|invalid|problem|unsatisfied|warning|conflicts|: line '

and nothing of real interest showed up that has not already been reported.

As for /etc/sysconfig/desktop's date, I have been modifying it to see it affects getting pulseaudio to run as a system daemon. No luck so far.
Comment 4 Bit Twister 2016-12-26 16:26:45 CET
(In reply to Bit Twister from comment #0)
> Description of problem:  6_s2:
> 
> incorrect /etc/sysconfig/desktop format
> 
> initscripts posttrans scriptlet would have converted it to 
> DISPLAYMANAGER=kdm DESKTOP=KDE4

Sorry, my mistake. Brain gas. Wrote my own confusion.
echo DISPLAYMANAGER=$DISPLAYMANAGER DESKTOP=$DESKTOP  :(

Problem still exists. Some app overwrote
DISPLAYMANAGER=sddm
with
DISPLAYMANAGER=kdm
DESKTOP=KDE4

Keywords: NEEDINFO => (none)

Bit Twister 2017-02-01 01:36:04 CET

Summary: 6_s2: incorrect /etc/sysconfig/desktop format => incorrect /etc/sysconfig/desktop format

Comment 5 Bit Twister 2018-09-05 00:43:16 CEST
closing bug

Resolution: (none) => FIXED
Status: NEW => RESOLVED