Re: [patch-2.4.0-test13-pre3] rootfs boot param. support

From: Andrzej Krzysztofowicz (ankry@pg.gda.pl)
Date: Mon Dec 18 2000 - 07:11:15 EST


"Tigran Aivazian wrote:"
> In November last year I wrote support for a new boot parameter called
> "rootfs" implementing functionality similar to UnixWare7, i.e. being
> able to specify the filesystem type to try first in mount_root() and if
> this fails then go on to the usual loop over all registered filesystems.
>
> At the time it was of pure academical interest (i.e. generally useful to
> everybody) but now I realized that it is actually quite critical, i.e.
> there exist filesystems (e.g. ext2) which are not able to detect their
> structural integrity beyond simple damage to the superblock. So, as a

It is more critical now if one wants to use eg. UMSDOS filesystem as root fs.
As the msdos filesystem is linked first system always tries to use it first
when there is a FAT filesystem on the root device.

One way of solving the problem is the "rootfs" parameter.
Changing link sequence to be non-alphabetic is another choice...

However, it is a separate issue that UMSDOS-root is broken in 2.4 at the
moment. But I hope it is not a permanent state.

> diff -urN -X dontdiff linux/Documentation/kernel-parameters.txt rootfs/Documentation/kernel-parameters.txt
> --- linux/Documentation/kernel-parameters.txt Tue Sep 5 21:51:14 2000
> +++ rootfs/Documentation/kernel-parameters.txt Mon Dec 18 09:04:06 2000
> @@ -473,7 +473,10 @@
>
> ro [KNL] Mount root device read-only on boot.
>
> - root= [KNL] root filesystem.
> + root= [KNL] Mount root filesystem on specified (as hex or "/dev/XXX") device.
> +
> + rootfs= [KNL] Use filesystem type specified (e.g. rootfs=ext2) for root.
> +
>
> rw [KNL] Mount root device read-write on boot.
>

Regards
   Andrzej

-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk

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



This archive was generated by hypermail 2b29 : Sat Dec 23 2000 - 21:00:21 EST