← Back to team overview

kernel-packages team mailing list archive

[Bug 1251274] [NEW] Kernel command line does not correctly parse ip field if nfsroot

 

You have been subscribed to a public bug:

Kernel image linux-image-3.8.0.31-generic
Ubuntu 12.04.3 LTS

I'm setting up machines with nfsroot.
dhcp works fine, but a static address fails to set resolvconf. 

The document https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt
states that there are between one and nine fields in the kernel command line option 'ip=' separated by colons.

The last two are dns0 and dns1
e.g.
APPEND root=/dev/nfs nfsroot=10.0.0.1:/exports/nfsroot initrd=boot/initrd.img ip=10.0.0.200:10.0.0.1:10.0.0.1:255.0.0.0:itx1c:eth0:off:10.0.0.1:0.0.0.0 rootwait=1 nfsdebug=1 nfsrootdebug=1 rw

I find that if I supply one or both dns addresses, then the boot fails
with the message

ipconfig: too many options for eth0
and then when configure_networking (from scripts/functions in /usr/share/initramsfs-tools/) runs (called by scripts/nfs) says it can't create it's temp file 
/tmp/net-eth0:off:10.0.0.1:0.0.0.0
After that we get a kernel panic as init completes badly.

Clearly the command line parsing does not meet the spec in the above
reference.

I'm sure I can work round this by not supplying dns addresses in the
command line and re-writing /etc/resolv.conf elsewhere, but this needs
fixing properly.

I'm not sure if the ip= line is parsed elsewhere so I don't have enough
information to offer a proper fix.

** Affects: initramfs-tools
     Importance: Undecided
         Status: New

** Affects: klibc
     Importance: Undecided
         Status: New

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment initramfs-tools nfsroot
-- 
Kernel command line does not correctly parse ip field if nfsroot
https://bugs.launchpad.net/bugs/1251274
You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.