Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 434110

Summary: app-admin/cancd-0.1.0-r2: netconsole init script fails to start due to wrong ifconfig path
Product: Gentoo Linux Reporter: Andrew Savchenko <bircoph>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: netconsole-init.d.patch

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.