Red Hat Bugzilla – Bug 181498
usage of libblkid in showlabels hangs opening /dev/fd0
Last modified: 2014-03-16 22:58:08 EDT
new-kernel-pkg hangs running echo "showlabels" | nash --force --quiet.
This is because libblkid is trying to open the (currently empty) /dev/fd0.
Feel free to move to e2fsprogs.
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?
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?
USB hard disks at least don't show up as removable, so I went with that.