lkml.org 
[lkml]   [2004]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subject/proc/partitions not done updating when init is ran?
From
I have a problem where it does not look like /proc/partitions is updated
completely by the time init is ran.

Basically I am booting from a usb flash device, and when I try to run fsck
on the device on boot (using LABEL=, which is necessary since the actual
device cannot be assumed in my config) it fails. After further
investigation /proc/partitions does not contain any scsi partitions right
when init is starting, but if I do a "sleep 10" before running fsck then
it works fine.

I can of course put that sleep in there but that is ugly and I have no way
of knowing the maximum delay, so if it took too long then it would not
work and I would be screwed...

Isn't /proc/partitions supposted to be finished updating when init starts?
If this is not a kernel bug (or it won't be fixed for a while), then what
is the deal and how can I fix this cleanly?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.042 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site