[Bug 1258800] [NEW] netboot does not include the 'alx' driver in 12.04.3

Geoffrey Hausheer 1258800 at bugs.launchpad.net
Sat Dec 7 17:37:21 UTC 2013


Public bug reported:

Ubuntu version:
Description:	Ubuntu 12.04.3 LTS
Release:	12.04

when building a netboot image (in initramfs.conf BOOT=nfs) the 'alx' module is not included.
This is a modules that is found here:
/lib/modules/3.8.0-34-generic/kernel/ubuntu/alx/alx.ko

and adds support for the Qualcomm Atheros QCA8171 Gigabit Ethernet adapter (among others)
The kernel does include the driver, but since it isn't under the 'net' directory, it isn't added to the initrd image, and net-booting is impossible

My fix was to create:
/usr/share/initramfs-tools/hooks/additional_net_modules
with the following contents:
----------
#!/bin/sh

set -e

PREREQ=""

prereqs () {
        echo "${PREREQ}"
}

case "${1}" in
        prereqs)
                prereqs
                exit 0
                ;;
esac

. /usr/share/initramfs-tools/hook-functions

manual_add_modules alx

exit 0
----------

I then rebuild the initramfs image via:
update-initramfs -u

It is probably rare that someone has both this hardware and is
netbooting, but this took me  a while to figure out, and would be a nice
to have fix for 12.04.4

** Affects: initramfs-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: alx netboot

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1258800

Title:
  netboot does not include the 'alx' driver in 12.04.3

Status in “initramfs-tools” package in Ubuntu:
  New

Bug description:
  Ubuntu version:
  Description:	Ubuntu 12.04.3 LTS
  Release:	12.04

  when building a netboot image (in initramfs.conf BOOT=nfs) the 'alx' module is not included.
  This is a modules that is found here:
  /lib/modules/3.8.0-34-generic/kernel/ubuntu/alx/alx.ko

  and adds support for the Qualcomm Atheros QCA8171 Gigabit Ethernet adapter (among others)
  The kernel does include the driver, but since it isn't under the 'net' directory, it isn't added to the initrd image, and net-booting is impossible

  My fix was to create:
  /usr/share/initramfs-tools/hooks/additional_net_modules
  with the following contents:
  ----------
  #!/bin/sh

  set -e

  PREREQ=""

  prereqs () {
          echo "${PREREQ}"
  }

  case "${1}" in
          prereqs)
                  prereqs
                  exit 0
                  ;;
  esac

  . /usr/share/initramfs-tools/hook-functions

  manual_add_modules alx

  exit 0
  ----------

  I then rebuild the initramfs image via:
  update-initramfs -u

  It is probably rare that someone has both this hardware and is
  netbooting, but this took me  a while to figure out, and would be a
  nice to have fix for 12.04.4

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1258800/+subscriptions



More information about the foundations-bugs mailing list