You are not logged in.

#1 2013-04-24 01:56:50

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

[solved] netcfg vs systemd; conflicting config

So I've been going nuts trying to figure out why netcfg kept bringing up the wrong network config at boot.

I had been setting my desired network in /etc/conf.f/netcfg which clearly states (emphasis added):

# Enable these netcfg profiles at boot time.
#   - prefix an entry with a '@' to background its startup
#   - set to 'last' to restore the profiles running at the last shutdown
#   - set to 'menu' to present a menu (requires the dialog package)
# Network profiles are found in /etc/network.d
NETWORKS=(idmz)

But that file appears to be ignored, instead the relevant "netcfg@whatever" profile that is enabled is used instead.

So my question:
1) Does anyone else consider this conflicting?
2) Can I tell systemd to mind it's own business regarding which profile to use so netcfg can do what it's supposed to do?

Last edited by fukawi2 (2013-04-24 07:53:01)

Offline

#2 2013-04-24 06:15:33

th3voic3
Member
Registered: 2012-03-20
Posts: 92

Re: [solved] netcfg vs systemd; conflicting config

You might consider switching to netctl as this is the official replacement for netcfg.
https://bbs.archlinux.org/viewtopic.php?id=157670

Offline

#3 2013-04-24 06:51:28

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [solved] netcfg vs systemd; conflicting config

+1 for netctl, but here's the answer anyway. smile

Use /etc/conf.d/netcfg with netcfg.service - alternatively, use netcfg@whatever.service. You seem to be using both, which won't work.

Offline

#4 2013-04-24 07:52:50

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: [solved] netcfg vs systemd; conflicting config

tomk wrote:

+1 for netctl, but here's the answer anyway. smile

netctl uses the same configs etc so I'm guessing it's fairly similar and would behave the same?

tomk wrote:

Use /etc/conf.d/netcfg with netcfg.service - alternatively, use netcfg@whatever.service. You seem to be using both, which won't work.

That's the info I was after; bit late to fix netcfg since it's depreciated, but anyway.... Maybe a Googler will find this thread at least smile

Thx guys

Offline

#5 2013-04-24 08:18:00

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [solved] netcfg vs systemd; conflicting config

fukawi2 wrote:

netctl uses the same configs etc so I'm guessing it's fairly similar and would behave the same?

netctl doesn't use /etc/conf.d/* at all, so the situation wouldn't arise.

Offline

Board footer

Powered by FluxBB