mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* patch to have root fs on USB device (please CC)
@ 2002-06-02 20:13 Paul Stoeber
  2002-06-02 20:46 ` Thunder from the hill
  2002-06-03 15:05 ` Eric Lammerts
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Stoeber @ 2002-06-02 20:13 UTC (permalink / raw)
  To: linux-kernel

It simply sleeps 10 seconds before mount_block_root().

I get an 'Unable to mount root' panic if I don't apply it,
because the attached device rolls in too late.

Same for FireWire, but that's currently out of reach because
I must run rescan-scsi-bus.sh from user space to make the
disk visible as /dev/sd?  (to be fixed soon??).

Same for all hotpluggable storage devices I suppose.

Of course that patch is really terribly wrong, maybe someone
will fix these things some day.

Please CC, I'm not on the list.


wait-before-mounting-root.patch in
Linux xyz 2.4.19-pre8 #2 Sun May 26 20:02:49 UTC 2002 ppc unknown

--- init/do_mounts.c.orig	Sat May 25 18:11:45 2002
+++ init/do_mounts.c	Sat May 25 18:15:22 2002
@@ -311,9 +311,13 @@
 }
 static void __init mount_block_root(char *name, int flags)
 {
-	char *fs_names = __getname();
+	char *fs_names;
 	char *p;
 
+	set_current_state(TASK_UNINTERRUPTIBLE);
+	schedule_timeout(10*HZ);
+
+	fs_names = __getname();
 	get_fs_names(fs_names);
 retry:
 	for (p = fs_names; *p; p += strlen(p)+1) {

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-03 15:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-02 20:13 patch to have root fs on USB device (please CC) Paul Stoeber
2002-06-02 20:46 ` Thunder from the hill
2002-06-03 15:05 ` Eric Lammerts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®