On Mon, Jan 03, 2011 at 07:44:23PM -0000, Alkis Georgopoulos wrote:
> Public bug reported:
> 
> local-top/nbd in my Lucid (2.9.14-2ubuntu1) contains the following:
> if [ -z "$nbdsrv" ]
> then
>       nbdsrv=${ROOTSERVER}
> fi
> 
> That allowed me to pass "root=/dev/nbd0 nbdroot=,2011" without having to
> declare the server IP in pxelinux.cfg/default, it was autodetected.
> 
> local-top/nbd from Natty (1:2.9.16-6ubuntu1) and from the current
> http://git.debian.org/?p=users/wouter/nbd.git do not fallback to using
> ROOTSERVER anymore, so I need to change my configuration every time my
> server IP changes.

Actually, what that version does is require you to specify:

nbdroot=dhcp

if you want to get anything from DHCP (and in that case, you must get
*everything* from DHCP); the format of the ROOTPATH variable should
then look like what the nbdroot parameter looks like if you don't use
nbdroot=dhcp). This is to avoid things going haywire if someone
specifies a root path for an root-on-NFS configuration but has NBD
installed, too (for swap, say). You can use this like so:

option root-path "nbd-server.example.com,2011,nbd0";

which I think is preferable over abusing ROOTSERVER (that has other
purposes too).

If there are some issues with that method, please let me know (but I'd
prefer not having to support 30 different types of booting nbd; the
script is complex enough as it is).

-- 
The biometric identification system at the gates of the CIA headquarters
works because there's a guard with a large gun making sure no one is
trying to fool the system.
  http://www.schneier.com/blog/archives/2009/01/biometrics.html

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/696941

Title:
  feature request: support ROOTSERVER again in local-top/nbd

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to