Bug 774724

Summary: grub2-mkconfig takes several minutes to complete
Product: [openSUSE] openSUSE 12.2 Reporter: Roman Bysh <rb03884>
Component: BootloaderAssignee: Michael Chang <mchang>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Critical    
Priority: P5 - None CC: mchang, mfilka
Version: RC 2   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 12.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Results of bash -x /usr/sbin/grub2-mkconfig

Description Roman Bysh 2012-08-06 23:54:23 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1

When running grub2-mkconfig -o /boot/grub2/grub.cfg it takes about a very long time before it completes scanning two different root partitions. 

Reproducible: Always

Steps to Reproduce:
1. Open konsole or xterm and type su -
2. Type in grub2-mkconfig -o /boot/grub2/grub.cfg
3. Sit and wait
Actual Results:  
The results take several minutes.

Expected Results:  
The results should only take several seconds.
Comment 1 Roman Bysh 2012-08-11 15:55:05 UTC
Can you please assign this to Michael as he's working on the Yast2-Boot Loader?

I believe the problem with grub2-mkconfig is tied to the scripts causing the Yast2-Boot Loader to freeze up at 100 %.
Comment 2 Michael Chang 2012-08-12 04:00:05 UTC
Hi Roman,

I'm curious in what is "two different root partition" ? We should have
only one partition mounted as root at one time, isn't it ? Are you
multi-booting with other distribution.

An output of "set -x" is helpful in tracing the commands, we could
know where the script get stuck or looping ..

$ bash -x /user/sbin/grub2-mkconfig

PS. I don't test above command work or not, don't set the output to your config as the trace output might clutter it.

Thanks.
Comment 3 Roman Bysh 2012-08-12 15:27:45 UTC
No other distros. Just two different versions of openSUSXE.  I'm multi-booting to 12.1 and 12.2. And yes only one root partition is mounted at one time.

The grub2-mkconfig ran much faster with Grub2 1.99 in RC1.

Which file will you require for me to upload?
Comment 4 Roman Bysh 2012-08-12 17:16:56 UTC
Created attachment 502071 [details]
Results of bash -x /usr/sbin/grub2-mkconfig
Comment 5 Michael Chang 2012-09-11 04:24:59 UTC
Mark dup of bnc#774560

*** This bug has been marked as a duplicate of bug 774560 ***