initramfs-tools uses dhcp even with a static ip address in comand line

Bug #391622 reported by Adrian Vasile
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Fix Released
Medium
Unassigned
live-initramfs (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: initramfs-tools

My initramfs-tools version: 0.92bubuntu29
Noticed this on a jaunty based clonezilla-live cd, booted with a cmdline like:

boot=live union=aufs netboot="nfs" ip=192.168.171.121::192.168.171.254:255.255.255.0::eth0 nfsroot=192.168.137.1:/live quickreboot noprompt noprompt nolocales

What happens is that no matter the ip= parameter, the network ends up being "configured" by dhcp so booting just hangs when there's no dhcp offer.

The simple fix for me is attached. Changing this and rebuilding the initrd worked for me. Someone with more experience with initramfs-tools should look into how to make this work for all people (many of them do use dhcp), since this might break things for them.

Revision history for this message
Adrian Vasile (adva) wrote :
Changed in initramfs-tools (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Colin Watson (cjwatson) wrote :

Your report concerns a file in live-initramfs, although at first glance casper looks as though it may suffer from a similar problem.

affects: initramfs-tools (Ubuntu) → live-initramfs (Ubuntu)
Revision history for this message
DeeKey (privateinf) wrote :

Yes, Casper also suffers from it. Here is a mail thread describing it:
http://<email address hidden>/msg00207.html

Is it possible to fix this problem by editing initramfs files and without recompilation?

Changed in casper (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Stéphane Graber (stgraber) wrote :

casper uses initramfs-tools' function for that which parses ip= properly (at least from reading the code). casper never directly checks $INTERFACE.

Changed in casper (Ubuntu):
status: New → Fix Released
Revision history for this message
Phillip Susi (psusi) wrote :

This package has been removed from Ubuntu. It has been replaced by the live-boot package. If you still have this issue with the live-boot package in 12.04 or later, please reopen and reassign to that package.

Changed in live-initramfs (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.