No network when PXE booting Live Ubuntu with CIFS

Bug #1331547 reported by patpat on 2014-06-18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
casper (Ubuntu)

Bug Description

the initrd.lz\initrd\scripts\casper script has a bug

do_netmount() {

    if [ "${NETBOOT}" != "nfs" ] && do_cifsmount ; then
    elif do_nfsmount ; then
        export NETBOOT

should be changed to
    if [ "${NETBOOT}" != "nfs" ] && do_cifsmount ; then
        export NETBOOT ##<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    elif do_nfsmount ; then
        export NETBOOT

If we use netboot=cifs the variable NETBOOT is not exported and that impacts
that ends up recreating with delay and errors /etc/network/interfaces.
Next when Ubuntu boots Internet/Networking is not available.

seen in

patpat (masottaus) on 2014-06-18
affects: dia (Ubuntu) → casper (Ubuntu)
patpat (masottaus) on 2014-06-19
summary: - No network when PXE booting with CIFS (Live)
+ No network when PXE booting Live Ubuntu with CIFS
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in casper (Ubuntu):
status: New → Confirmed

Just use CAPS words for cifs:

Yes this is magick, but it works!

For nfs use lowercase words:

Bug or feature?

patpat (masottaus) wrote :

just by watching the code it is obvious the export command is missing.

the BUG remains;
I do not see any "feature" here.

 Also images affected too:

Guga (tylderon) wrote :

The issues above are easily reproducible at the moment. It's a show-stopper for CIFS netboot deployments. The needed fix is quite simple and a proposed fix can already be found in this thread. Please look into this.


P.S.: Could this bug be edited so that the confirmed newer affected versions are added to it? The devs won't notice it if it only affects casper.

Mathew Hodson (mhodson) on 2016-05-16
tags: added: trusty
Changed in casper (Ubuntu):
importance: Undecided → Medium
tags: added: bytesize
tags: added: bitesize
removed: bytesize
tags: added: xenial
Guga (tylderon) wrote :

Hello, everyone!

Considering we have a new Ubuntu edition in the oven, could this bug be looked into so its fix can be included in the latest, shiny Ubuntu version as well?


Guga (tylderon) wrote :

Does anyone know if Zesty is affected as well?

Bryan Quigley (bryanquigley) wrote :

I've been trying to wrap my head around this feature (and why it's used from the desktop CD) - what is the specific use case? More here:

This is also relevant because we would need a way to confirm if this bug is fixed or not. Thanks!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers