Red Hat Bugzilla – Bug 137816
system does not boot with > 75 partitions (nash)
Last modified: 2010-10-21 22:40:41 EDT
Description of problem:
nash only calls read once on /proc/partitions. If the file is not read in it's
entirety (probably if '/' is listed after the bit slurped by the on read call)
the boot stops with the following output:
Creating block devices
VFS: Cannot open root device "LABEL=/" or 00:00
Please append a correct "root=/" boot option
Kernel panic: VFS: Unable to mount root fs on 00:00
Version-Release number of selected component (if applicable):
Always if you have > 75 partitions
Steps to Reproduce:
1. boot system with more than 75 partitions
system fails to boot
system boots successfully
Created attachment 106040 [details]
Patch make nash read all of /proc/partitions even if it's huge
Committed a fix to CVS, but not this one exactly.
The problem still occurs (but only if /proc/partitions is being read, rather
than a file copy of /proc/partitions).
We can have short reads reading /proc/partitions when loads of disks are
present, and only the first line would be read in the first go.
The attached patch fixes the problem with short-reads by retrying to read the
file until there's absolutely nothing else to read.
The problem can be reproduced easily by creating loads of partitions in a VMWare
instance (could also be replicated with a real machine with loads of disks, but
setting up VMWare is just easier in that case).
Created attachment 118053 [details]
Can you try the mkinitrd-220.127.116.11-1 packages here:
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.