Re: NFSROOT with NFS Version 3

From: Trond Myklebust
Date: Mon Nov 20 2006 - 12:35:37 EST


On Mon, 2006-11-20 at 17:33 +0100, Christoph Pleger wrote:
> Hello,
>
> On Mon, 20 Nov 2006 08:57:16 -0500
> Joe Korty <joe.korty@xxxxxxxx> wrote:
>
> > On Mon, Nov 20, 2006 at 12:07:50PM +0100, Christoph Pleger wrote:
> > > Warning: Unable to open an initial console
> >
> > This usually means /dev/console doesn't exist. With many of
> > today's distributions, this means you didn't boot with a
> > initrd properly set up to run with your newly built kernel.
>
> The device /dev/console exists, but init/main.c tries to open it
> read-write. As the nfsroot is mounted read-only, /dev/console cannot be
> opened read-write.

Yes. NFSv3 has an ACCESS rpc call, which allows the client to request
the correct permissions from the server rather than relying on mode
bits.
IOW: this is definitely an intentional feature.

Cheers,
Trond

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