Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434110 - app-admin/cancd-0.1.0-r2: netconsole init script fails to start due to wrong ifconfig path
Summary: app-admin/cancd-0.1.0-r2: netconsole init script fails to start due to wrong ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-09-06 11:52 UTC by Andrew Savchenko
Modified: 2015-05-03 17:28 UTC (History)
0 users

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


Attachments
netconsole-init.d.patch (netconsole-init.d.patch,365 bytes, patch)
2015-04-05 10:17 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2012-09-06 11:52:26 UTC
Hello,

as of cancd-0.1.0-r2, netconsole init script fails to start:

# rc-config start netconsole
Starting init script
netconsole   | * Source device invalid.
netconsole   | * ERROR: netconsole failed to start

This happens not because source device is invalid, but because the following command from init script fails:
LC_ALL=C /sbin/ifconfig "${DEVICE}" 1>/dev/null 2>/dev/null

ifconfig is now located in /bin, not /sbin (net-tools-1.60_p20120127084908).

As a solution path must be either changed to /bin or removed at all to be compatible with all versions.
Comment 1 Andrew Savchenko gentoo-dev 2015-04-05 10:17:46 UTC
Created attachment 400582 [details, diff]
netconsole-init.d.patch

Ping.

I'm going to apply the following patch and bump to -r3 in two weeks if there are no objections.
Comment 2 Andrew Savchenko gentoo-dev 2015-05-03 17:28:03 UTC
In tree.