[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#380649: initramfs-tools: nfs options should comply with nfsroot.txt from linux documentation



On Mon, Jul 31, 2006 at 06:40:45PM +0200, maximilian attems wrote:
> severity important
> stop

it is a feature request... though if you want to bloat it to important,
that's fine by me :)
 
> On Mon, Jul 31, 2006 at 08:36:15AM -0700, Vagrant Cascadian wrote:
> > Package: initramfs-tools
> > Severity: wishlist
> 
> please tell the version.

well, looking at the source code, it appears to be present in 0.73 and
all earlier versions i've seen...
 
> latest initramfs-tools in unstable uses mount from busybox.

which mount is used is somewhat irrelevent to this bug (though nfsmount
from klibc indeed appears buggy)...

the request of this bug is for initramfs-tools to parse /proc/cmdline
the same way (or as similar as possible) that the in-kernel nfsroot code
does.

> > it would be nice if the nfs kernel commandline boot options of
> > initramfs-tools supported the options found in the linux kernel
> > Documentation/nfsroot.txt, in the "kernel command line" section.
> > 
> > http://lxr.linux.no/source/Documentation/nfsroot.txt
> > 
> > particularly "root=/dev/nfs" as a means of enabling the NFS support,
> > rather than hacking a configuration file option, but also more complete
> > support for "nfsroot", and "ip".

so, instead of (or in addition to) implementing the "nfsopts"
parameter(as initramfs-tools does now), parsing the "nfsroot" parameter
the same way the kernel does:

  nfsroot=[<server-ip>:]<root-dir>[,<nfs-options>]
 
also, instead of having an option in initramfs.conf for BOOT=nfs, it
should just enable the NFS code when root=/dev/nfs is passed at the
kernel commandline (i.e. via the bootloader).

any options not defined should hopefully get grabbed by dhcp (or rarp or
bootp, if you're stuck with that for some odd reason), or use a "sane"
default.

does that clear up the request a bit?

> which cmdline are your using atm?

qemu's -append option, pxelinux.0 from syslinux, etherboot...

live well,
  vagrant



Reply to: