Bug 769350

Summary: grub2.cfg missing
Product: [openSUSE] openSUSE 12.2 Reporter: Bernhard Wiedemann <bwiedemann>
Component: BootloaderAssignee: Steffen Winterfeldt <snwint>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Critical    
Priority: P5 - None CC: ismail, mchang
Version: Factory   
Target Milestone: ---   
Hardware: All   
OS: Other   
Whiteboard:
Found By: System Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: yast2 logs
Patch to check grub.cfg existence before open and read it ..
new patch

Description Bernhard Wiedemann 2012-06-29 05:19:39 UTC
I found that in 12.2 (after it branched off Factory)
openQA now got a failure in mkinitrd
due to missing grub2/grub.cfg - see
http://openqa.opensuse.org/openqa/permanent/bug/bug-grub2.cfg-missing.png

last  seen working 2012-06-28 09:53
first seen failing 2012-06-28 13:06
Comment 1 Bernhard Wiedemann 2012-06-29 05:22:06 UTC
Created attachment 496874 [details]
yast2 logs
Comment 2 Michael Chang 2012-06-29 06:23:15 UTC
It's caused by grub2's latest patch to that shadows grub.cfg, see bnc#768063.

perl-Bootloader would access it and suppose it's been there already, it's my fault that do not check this point. Will try to fix it asap.
Comment 3 Michael Chang 2012-06-29 11:04:14 UTC
I cannot reproduce the issue on my side (use beta1 + dud), using the rpm packages in 12.2 release repo and dud, is there any specific condition for the installation? I guess that maybe in beta1 dvd the installation system has /boot/grub2/grub.cfg due to it was not updated yet .. but not sure it's the reason for me not able to reproduce because did check it was really not there ..

Meanwhile I figured out the potential cause to the issue and fixed it. Due to I can't reproduce it, I'm not sure the fix is in real or not. But I think it worth to send the patch to 12.2 as I'm quite convinced that it's the root cause.
Comment 4 Michael Chang 2012-06-29 11:06:15 UTC
Created attachment 496911 [details]
Patch to check grub.cfg existence before open and read it ..
Comment 5 Michael Chang 2012-06-29 11:12:54 UTC
Hi Steffen,

I'm not sure about the process to 12.2 repo, should I branch from factory? or I could we directly branch it? Any good suggestion about the process for me ?

Please pardon my ignorance.
Thanks.
Comment 6 Steffen Winterfeldt 2012-06-29 11:26:56 UTC
No, just keeps things as usual. I won't branch git and submit pbl & y2-bl
changes also to 12.2.
Comment 7 Bernhard Wiedemann 2012-06-29 11:50:05 UTC
Michael, 
to reproduce you need to use 
http://download.opensuse.org/factory/repo/oss/
instead of 12.2 repos, because the bug was only introduced after beta2.
Comment 8 Michael Chang 2012-06-29 12:08:03 UTC
(In reply to comment #6)
> No, just keeps things as usual. I won't branch git and submit pbl & y2-bl
> changes also to 12.2.

As usual means send pull request to github pbl repo?
Sorry again.
Comment 9 Michael Chang 2012-06-29 12:10:51 UTC
(In reply to comment #7)
> Michael, 
> to reproduce you need to use 
> http://download.opensuse.org/factory/repo/oss/
> instead of 12.2 repos, because the bug was only introduced after beta2.

Thanks. Since 12.2 release repo created and split from factory, I misunderstand that the openQA testing is against 12.2 repo ..

Now I will try your suggestion.
Comment 10 Steffen Winterfeldt 2012-06-29 12:12:25 UTC
> As usual means send pull request to github pbl repo?

Yes.
Comment 11 Michael Chang 2012-06-29 13:39:55 UTC
Created attachment 496950 [details]
new patch

Previous fix is incorrect. This new patch is verified.
Comment 12 Michael Chang 2012-06-29 13:42:44 UTC
Hi Steffen,

I sent pull request for above patch to github. Please help to check and submit factory & 12.2.

Sorry this comes a bit urgent, Thanks a lot.
Comment 13 Bernhard Wiedemann 2012-06-29 15:00:48 UTC
This is an autogenerated message for OBS integration:
This bug (769350) was mentioned in
https://build.opensuse.org/request/show/126631 Factory / perl-Bootloader
Comment 14 Steffen Winterfeldt 2012-07-02 06:55:30 UTC
in 12.2 now
Comment 15 Steffen Winterfeldt 2012-07-05 06:01:40 UTC
*** Bug 769949 has been marked as a duplicate of this bug. ***