Bug 851734

Summary: Yast bootloader ignores sysconfig
Product: [openSUSE] openSUSE 13.1 Reporter: Forgotten User JoZGrGEMhM <forgotten_JoZGrGEMhM>
Component: YaST2Assignee: Steffen Winterfeldt <snwint>
Status: RESOLVED INVALID QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: arvidjaar, jreidinger, suse-beta, them4z
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 13.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Yast log with information with today test run
Part of y2log-1

Description Forgotten User JoZGrGEMhM 2013-11-22 03:18:29 UTC
Created attachment 568645 [details]
Yast log with information with today test run

User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.11 Safari/537.36 SUSE/31.0.1650.11

Manually edited /etc/sysconfig/bootloader ignored on yast bootloader launch. 

Reproducible: Always

Steps to Reproduce:
1. Edit one of APPEND sections in /etc/sysconfig/bootloader, DEFAULT_APPEND for example 
2. Launch yast2 bootloader
3. Select one of boot entry and click Edit button
4. Check "Optional Kernel Command Line Parameter" field
Actual Results:  
All edited append lines will be set to default instead of just edited value

Expected Results:  
Yast should load values from sysconfig files

With logs attached I've trying to edit 
DEFAULT_APPEND="resume=/dev/system/swap splash=silent quiet showopts"
to 
DEFAULT_APPEND="resume=/dev/system/swap splash=silent quiet showopts test append string"
Comment 1 Andrei Borzenkov 2013-11-23 08:38:07 UTC
Which bootloader is used (LILO, GRUB, GRUB2)?
Comment 2 Forgotten User JoZGrGEMhM 2013-11-25 03:51:00 UTC
Machine from log uploaded using grub-legacy. I also have this issue on another machine which have grub2 as bootloader.
Comment 3 C. Holm 2013-12-03 14:08:27 UTC
I'm seeing this with AutoYAST and GRUB2, too. (And it's possible the bug already existed in 12.3, but I'll have to double-check that.)

I have "<append>textmode=1 splash=0 console=tty0 showopts</append>" in my profile, and during stage1, the "console=" param is just thrown away. I'll attach a partial log (issue seems to happen between line 22 and 23), HTH.

I can provide full logs if necessary.
Comment 4 C. Holm 2013-12-03 14:09:13 UTC
Created attachment 569987 [details]
Part of y2log-1
Comment 5 Josef Reidinger 2014-02-14 13:24:10 UTC
There is some confusion how this value in sysconfig work. From 12.3 decision is to keep modified kernel lines from menu.lst ( grub2 is different story as I explain below ). Sysconfig values is used only for new kernels and only if old entry is removed before new one appear ( can happen if changing kernel flavor ). So to conclude sysconfig values for kernel appeand are used only as fallback.

For grub2 sysconfig values are not used at all and are used values from /etc/default/grub same as for other distributions.