Re: [Nbd] [RFC 4/4] nbd: Add support for nbd as root device
- To: Markus Pargmann <mpa@...1897...>
- Cc: nbd-general@lists.sourceforge.net, Paul Clements <Paul.Clements@...124...>, linux-kernel@...25..., kernel@...1897...
- Subject: Re: [Nbd] [RFC 4/4] nbd: Add support for nbd as root device
- From: Wouter Verhelst <w@...112...>
- Date: Fri, 30 Jan 2015 00:42:54 +0100
- Message-id: <20150129234254.GD15853@...3...>
- In-reply-to: <1421156665-27318-5-git-send-email-mpa@...1897...>
- References: <1421156665-27318-1-git-send-email-mpa@...1897...> <1421156665-27318-5-git-send-email-mpa@...1897...>
On Tue, Jan 13, 2015 at 02:44:25PM +0100, Markus Pargmann wrote:
> Adding support to nbd to use it as a root device. This code essentially
> provides a minimal nbd-client implementation within the kernel. It opens
> a socket and makes the negotiation with the server. Afterwards it passes
> the socket to the normal nbd-code to handle the connection.
>
> The arguments for the server are passed via module parameter. The
> module parameter has the format
> '[<SERVER_IP>:]<SERVER_PORT>/<EXPORT_NAME>'.
> SERVER_IP is optional. If it is not available it will use the
> root_server_addr transmitted through DHCP.
>
> Based on those arguments, the connection to the server is established
> and is connected to the nbd0 device. The rootdevice therefore is
> root=/dev/nbd0.
Not that I'm opposed to this, but you do realize that doing nbd-client
from initramfs or similar is possible, right? Most initramfs
implementations these days support it.
[...]
--
It is easy to love a country that is famous for chocolate and beer
-- Barack Obama, speaking in Brussels, Belgium, 2014-03-26
Reply to: