Re: NFS-mounted, read-only /dev unusable in 2.6

From: Miquel van Smoorenburg
Date: Tue Aug 03 2004 - 17:09:20 EST


In article <64bf.410f9d6f.62af@xxxxxxxxx>,
Dick Streefland <dick.streefland@xxxxxxxxx> wrote:
>Frank Steiner <fsteiner-mail@xxxxxxxxxxxxxx> wrote:
>| Or is there any other way to get an initial console or
>| output any messages from an init script if one boots via nfsroot
>| and / (and thus, /dev) is only exported read-only from the
>| server?
>
>You can boot with a ramdisk as root, initialized with an initrd, and
>then perform all NFS mounts manually in the init script. You can use
>pivot_root to switch to an NFS root to get rid of the ramdisk.

If having /dev mounted read-only means you cannot open devices
like /dev/console read/write then that is a bug in the NFS client
in the kernel.

On all other filesystems (ext2, ext3, xfs etc) there's no problem
opening devices r/w on a read-only filesystem.

Mike.
--
The question is, what is a "manamanap".
The question is, who cares ?

-
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/