Bug 804176

Summary: YaST doesn't save bootloader settings when 'Timeout in seconds' is set to 0
Product: [openSUSE] openSUSE 12.3 Reporter: Dániel Simon <simondani91>
Component: YaST2Assignee: Michael Chang <mchang>
Status: VERIFIED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Minor    
Priority: P5 - None CC: snwint, wstephenson
Version: RC 1   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 12.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: A screenshot with marks of the buggy options.

Description Dániel Simon 2013-02-17 12:43:48 UTC
Created attachment 525005 [details]
A screenshot with marks of the buggy options.

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

When I set 'Timeout in seconds' option to 0, then YaST will not save the changes. If I check 'Hide menu on boot' option, it also stays unchanged if timeout is set to 0.

Reproducible: Always

Steps to Reproduce:
1. Open up the bootloader settings in YaST.
2. Set 'Timeout in seconds' to 0 (zero).
3. Change the state of 'Hide menu on boot' option (but it is not necessary).
4. Save the changes, close YaST.
5. Open up YaST bootloader settings again and see the result (reboot is not needed).
Actual Results:  
'Timeout in seconds' option stays unchanged.
'Hide menu on boot' option stays unchanged.

Expected Results:  
'Timeout in seconds' option is set to 0.
The state of 'Hide menu on boot' option is changed.

The bug is present in openSUSE 12.2 and also in 12.3 RC1. I am using GRUB 2 bootloader.
Comment 1 Will Stephenson 2013-02-18 10:38:26 UTC
Confirmed
Comment 2 Michael Chang 2013-02-19 09:12:01 UTC
I can reproduce it and only happened when value is 0. :(
Comment 3 Michael Chang 2013-02-19 10:14:17 UTC
Hi Daniel,

Could you please test perl bootloader package in this repository ?

http://download.opensuse.org/repositories/home:/michael-chang:/bnc804176/openSUSE_Factory/

Thanks.
Comment 4 Dániel Simon 2013-02-20 19:11:20 UTC
Hi Michael,

I have tested the patched version of perl-Bootloader (0.707-94.1) from the given repository on openSUSE 12.3 RC1.

Now it is possible to set the timeout value to 0, but the 'Hide menu on boot' issue is still remained. If the timeout value is set to 0, then it will not save the changes of the Hide menu option.

Thanks for dealing with my very first bug report. :)
Comment 5 Michael Chang 2013-02-21 08:21:40 UTC
(In reply to comment #4)
> Hi Michael,

> Now it is possible to set the timeout value to 0, but the 'Hide menu on boot'
> issue is still remained. If the timeout value is set to 0, then it will not
> save the changes of the Hide menu option.

If you quit yast2 bootloader (save changes) and reopen, the "Hide menu on boot" will be checked (If not it's wrong). It is just not reflect the changes immediately (in real time) with the time out set to zero (because it's not saved, not taking effective yet).

Or I mis-understanding your point here?
 
> Thanks for dealing with my very first bug report. :)

No. We appreciate your participate. :)

Regards,
Comment 6 Dániel Simon 2013-02-21 09:01:22 UTC
(In reply to comment #5)
> If you quit yast2 bootloader (save changes) and reopen, the "Hide menu on boot"
> will be checked (If not it's wrong). It is just not reflect the changes
> immediately (in real time) with the time out set to zero (because it's not
> saved, not taking effective yet).
> 
> Or I mis-understanding your point here?

No, it looks like I misunderstood the functionality of YaST2 bootloader.

As I take another look at it, it works properly. Of course, if timeout is set to 0, then 'Hide menu' should be checked.

So the problem is solved.
Comment 7 Michael Chang 2013-02-25 06:34:25 UTC
Hi Daniel,

Thanks for your confirmation.

As the pull request mentioning this fix had been sent to Steffen, close this one as resolved fixed.