Bug 905860 - grub2-mkconfig hangs in os-probe
Summary: grub2-mkconfig hangs in os-probe
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: os-prober
Version: 18
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Hedayat Vatankhah
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-30 10:35 UTC by Leonid
Modified: 2013-05-06 07:53 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-06 07:53:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Leonid 2013-01-30 10:35:51 UTC
The installation of Fedora 18 on my new desktop system hanged in the grub install. It turns out that the os-prober part of grub2-mkconfig hangs for some reason.
During the install the prober had worked for 20+ minutes, and nothing had happened

Comment 1 Hedayat Vatankhah 2013-02-25 20:13:35 UTC
Can you attach Anaconda log files (in /tmp/ during installation) or run os-prober from command line and attach its output in syslog?

Comment 2 Dave Miller 2013-04-03 17:57:51 UTC
It appears that the call to blkid in the line:

blkid | grep btrfs | cut -d ':' -f 1

"Never" returns.  This is in the partitions function.

Comment 3 Dave Miller 2013-04-03 20:09:02 UTC
Looks like "never" was a little pessimistic:

[root@abuse grub.d]# time blkid
/dev/sda1: UUID="694780e7-e13e-4424-af4e-ed452b7e6fff" TYPE="ext4" 
/dev/sda2: UUID="4q3Nxi-2VtO-qd0o-JIMV-8q59-Rbsg-Ted7QR" TYPE="LVM2_member" 
/dev/mapper/fedora-swap: UUID="d0f9ce4c-5215-4ccb-b0c3-460a04e151d6" TYPE="swap" 
/dev/mapper/fedora-root: UUID="0473bb89-b294-4d94-ba5b-8d60f9a74b66" TYPE="ext4" 
/dev/mapper/fedora-home: UUID="fe7c7e14-f622-46d5-bcef-ab83aaa0ed44" TYPE="ext4" 

real	11m34.600s
user	0m0.002s
sys	0m0.009s

Still odd that it takes 11:34.6 wall clock time.

Comment 4 Dave Miller 2013-04-05 04:37:39 UTC
Had to reboot the box for other reasons and the problem went away:

[root@abuse ~]# time blkid
/dev/sda1: UUID="694780e7-e13e-4424-af4e-ed452b7e6fff" TYPE="ext4" 
/dev/sda2: UUID="4q3Nxi-2VtO-qd0o-JIMV-8q59-Rbsg-Ted7QR" TYPE="LVM2_member" 
/dev/mapper/fedora-swap: UUID="d0f9ce4c-5215-4ccb-b0c3-460a04e151d6" TYPE="swap" 
/dev/mapper/fedora-root: UUID="0473bb89-b294-4d94-ba5b-8d60f9a74b66" TYPE="ext4" 
/dev/mapper/fedora-home: UUID="fe7c7e14-f622-46d5-bcef-ab83aaa0ed44" TYPE="ext4" 

real	0m0.008s
user	0m0.002s
sys	0m0.003s

Can the OP try rebooting and see if the problem goes away for him too?

Comment 5 Hedayat Vatankhah 2013-05-05 18:39:10 UTC
I'm not sure, but looks like a hard disk issue. blkid can take a long time if hard disk is problematic. Have you seen any ATA errors in your dmesg or /var/log/messages/ ?
does your blkid wait when trying to print data about a specific partition?

Comment 6 Dave Miller 2013-05-06 00:42:24 UTC
Only saw the delay on that particular update and the problem went away after the reboot.  Since I can't recreate the problem, I can't tell you if it tracks to a specific partition, sorry.  Also, I just grabbed and installed the latest FC 18 update which includes a kernel update and, again, no problem with grub2-mkconig or blkid.

Seems to be specific to what got changed in the particular update we (me and the OP) installed.

Comment 7 Hedayat Vatankhah 2013-05-06 07:53:11 UTC
OK, since blkid is not expected to take long, it doesn't seem to be an os-prober bug. Anyway, it seems to be fixed already. so closing this bug.


Note You need to log in before you can comment on or make changes to this bug.