Kernel command line does not correctly parse ip field if nfsroot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools |
New
|
Undecided
|
Unassigned | ||
klibc |
New
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Incomplete
|
Medium
|
Unassigned |
Bug Description
Kernel image linux-image-
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:/
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=
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_
/tmp/net-
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.
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
More info:
I've found the current git for ipconfig (part of klibc) in git.kernel. org/cgit/ libs/klibc/ klibc.git/ tree/usr/ kinit/ipconfig/ README. ipconfig? id=HEAD
http://
simply does not support the dns parameters that are specified.
It looks like initramfs-tools assumes it does, rather than pruning the dns entries (if supplied) and passing them to resolvconf.