Re: root fs on usb - is patching kernel still needed?

From: Willy Tarreau
Date: Sun May 16 2004 - 23:31:58 EST


Hi,

On Sun, May 16, 2004 at 09:15:08PM +0200, Tomasz Chmielewski wrote:
> Are there any solutions for this problem in stable or pre- kernel tree
> yet (2.4 or 2.6)? If not, will such a solution be ever included in a
> stable kernel?

AFAICT, none has been merged (yet).

> Or maybe are there any easier solutions for this (some lilo or grub
> option?)

An initrd might do the trick, although it's sometimes unconvenient to use :
- lilo (or grub) loads the initrd into memory
- lilo (or grub) loads the kernel and executes it
- the kernel sees the initrd and mounts it and executes /linuxrc
- linuxrc can load USB modules and wait the required amount of time
- linuxrc then mounts the root fs and does the pivot_root() and exits
- the kernel finally boots /sbin/init from your USB FS.

Regards,
Willy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/