Bug 181498

Summary: usage of libblkid in showlabels hangs opening /dev/fd0
Product: [Fedora] Fedora Reporter: Bill Nottingham <notting>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 5.0.28-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-27 16:14:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bill Nottingham 2006-02-14 17:33:45 UTC
new-kernel-pkg hangs running echo "showlabels" | nash --force --quiet.

This is because libblkid is trying to open the (currently empty) /dev/fd0.

mkinitrd-5.0.23-1

Feel free to move to e2fsprogs.

Comment 1 Peter Jones 2006-02-23 16:22:54 UTC
Ok, so now it doesn't look at fd*.  But that's not a good general solution --
what should be the rule here?  No "removable" devices?

Comment 2 Bill Nottingham 2006-02-23 16:35:02 UTC
The tongue-in-cheek answer is 'nothing with side effects'.

Removable might be a good criteria, however, I suspect that will eliminate
USB/firewire, which may not be what you want.

You could iterate and short-circuit when you found the requested label, but that
would require a C implementation.

Possibly check the media type? Or is that not available?


Comment 3 Peter Jones 2006-02-27 16:14:36 UTC
USB hard disks at least don't show up as removable, so I went with that.