Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 360789 - sys-apps/openrc-0.8.0: net.lo init.d fails to start when /bin/sh is not bash
Summary: sys-apps/openrc-0.8.0: net.lo init.d fails to start when /bin/sh is not bash
Status: RESOLVED DUPLICATE of bug 360367
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-27 14:51 UTC by Jens Rutschmann
Modified: 2011-03-27 15:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Rutschmann 2011-03-27 14:51:46 UTC
On my system I have /bin/sh symlinked to /bin/dash (app-shells/dash).
Since the 0.8 upgrade of openrc the net.lo init.d fails to start:

net.lo            | * Bringing up interface lo
net.lo            |/lib/rc/sh/runscript.sh: 1: Bad substitution
net.lo            | * ERROR: net.lo failed to start

Using einfo statements I tracked it to this loop in the start() function (lines 504-508):

for module in ${MODULES}; do
    if [ "$(command -v "${module}_pre_start")" = "${module}_pre_start" ]; then
        ${module}_pre_start || exit $?
    fi
done

Unfortunately my shell scripting skills are not that good so I couldn't find the real error here, as for some modules the loop code passes fine.

$MODULES is: "apipa arping bonding tuntap ccwgroup ethtool macchanger macnet netplugd wpa_supplicant ssidnet iproute2 pppd system vlan dhcpcd ip6to4"

The error occurs when processing the module "ethtool" and trying to invoke the respective pre_start function (the if-branch is entered).

When I set /bin/sh back to bash net.lo starts fine.
Comment 1 SpanKY gentoo-dev 2011-03-27 15:48:14 UTC

*** This bug has been marked as a duplicate of bug 360367 ***