Re: 2.6.12 initrd module loading seems parallel on bootup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Well, although I cannot comment on your exact situation, I guess I see the same problem here. When checking out 2.6.12 for the first time, my little early-userspace environment had some serious trouble configuring the scsi|md|lvm setup which worked flawlessly before. The plan was to load required modules for disks, then md, bring up the arrays and activate the LVs. But it takes several seconds (!) until device nodes appear after modprobe has terminated correctly. For me, the quick ugly fix was to introduce a delay loop in the bash scripts which waits for important device nodes before proceeding, similar to that:

function wait_for_node{} (
	echo -en "Waiting for ${1} to appear..."
	while [ ! -e ${1} ]
	do
		echo -en "."
		sleep 1s
	done
	echo " done."
)

This one can be called with any node important for the next initialization step. In my case, I wait for disk partitions to appear before RAID initialization:
	wait_for_node /dev/sda1
You could wait for your root partition to come up, instead of running into the vfs panic while trying to mount it. But that won't solve the original problem, I fear...

Yours,
Chris

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux