"ifup" should deal with non-zero exit codes from modprobe

Bug #337570 reported by Cyberax
2
Affects Status Importance Assigned to Milestone
ifupdown (Ubuntu)
New
Undecided
Unassigned
Nominated for Jaunty by Cyberax

Bug Description

Binary package hint: ifupdown

Ifup should deal with non-zero exit codes from modprobe. My ipv6 setup stopped working since ipv6 module is compiled into the kernel in Jaunty so "modprobe -Q" fails to load it.

Replacing modprobe with this script restored ipv6 functionality:
===============
#!/bin/bash

/sbin/modprobe.orig "$@"
ret=$?

if [[ "$1" == "-Q" ]] ; then
        exit 0
fi

exit $ret
===============

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Note that modprobe 3.7 doesn't _have_ a -Q option, so this patch would be invalid

Revision history for this message
Cyberax (alex-besogonov) wrote :

Jaunty still uses module-init-tools-3.3 which advertises support for "-Q" option:
===========
cyberax@devsrv:~$ modprobe
Usage: /sbin/modprobe.orig [-v] [-V] [-C config-file] [-n] [-i] [-q] [-Q] [-b] [-o <modname>] [ --dump-modversions ] <modname> [parameters...]
/sbin/modprobe.orig -r [-n] [-i] [-v] <modulename> ...
/sbin/modprobe.orig -l -t <dirname> [ -a <modulename> ...]
===========

Either module-init-tools should be fixed or ifupdown. I think that module-init-tools should be fixed for Jaunty, since it's a minimal amount of work.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: [Bug 337570] Re: "ifup" should deal with non-zero exit codes from modprobe

On Wed, 2009-03-04 at 13:38 +0000, Cyberax wrote:

> Jaunty still uses module-init-tools-3.3 which advertises support for
> "-Q" option:
>
The 3.7 upload is pending ;) it very soon won't.

Trust me, I'm the maintainer/developer.

Scott
--
Scott James Remnant
<email address hidden>

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.