No network when PXE booting Live Ubuntu with CIFS

Bug #1331547 reported by patpat
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

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

function
do_netmount() {

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

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

If we use netboot=cifs the variable NETBOOT is not exported and that impacts
initrd.lz\initrd\scripts\casper-bottom\23networking
that ends up recreating with delay and errors /etc/network/interfaces.
Next when Ubuntu boots Internet/Networking is not available.

seen in
 ubuntu-14.04-desktop-amd64.iso
 ubuntu-14.04-desktop-i386.iso

patpat (masottaus)
affects: dia (Ubuntu) → casper (Ubuntu)
patpat (masottaus)
summary: - No network when PXE booting with CIFS (Live)
+ No network when PXE booting Live Ubuntu with CIFS
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in casper (Ubuntu):
status: New → Confirmed
Revision history for this message
Кадышев Денис Александрович (metajiji-2) wrote :

Just use CAPS words for cifs:
NETBOOT=cifs

Yes this is magick, but it works!

For nfs use lowercase words:
netboot=cifs

Bug or feature?

Revision history for this message
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.

Revision history for this message
Кадышев Денис Александрович (metajiji-2) wrote :

 Also images affected too:
ubuntu-16.04-desktop-amd64.iso
ubuntu-16.04-desktop-i386.iso

Revision history for this message
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.

Thanks!

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)
tags: added: trusty
Changed in casper (Ubuntu):
importance: Undecided → Medium
tags: added: bytesize
tags: added: bitesize
removed: bytesize
tags: added: xenial
Revision history for this message
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?

Thanks!

Revision history for this message
Guga (tylderon) wrote :

Does anyone know if Zesty is affected as well?

Revision history for this message
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: https://community.ubuntu.com/t/anyone-use-cifs-root-in-live-session/1821

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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