You are not logged in.

#1 2018-10-07 08:23:43

diederick76
Member
Registered: 2010-02-14
Posts: 157

[SOLVED] netctl include directives are deprecated

Hi,

Since some time, netctl warns me that

 /etc/systemd/system/netctl@static\x2deno1\x2d100.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.

I have trouble finding any info on this. The file mentioned has a .include directive, but I'm unsure what a drop-in file is, and https://wiki.archlinux.org/index.php/Netctl doesn't mention them either.

.include /usr/lib/systemd/system/netctl@.service

[Unit]
Description=A basic static ethernet connection
BindsTo=sys-subsystem-net-devices-eno1.device
After=sys-subsystem-net-devices-eno1.device

Can someone point me in the right direction here?

Thanks!

Last edited by diederick76 (2018-10-07 10:21:23)

Offline

#2 2018-10-07 08:43:28

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] netctl include directives are deprecated

It says "a future version of systemd". See the systemd.unit(5) man page or https://wiki.archlinux.org/index.php/Sy … p-in_files.

Should be fixed in netctl already; maybe reenable the profile to update to the new style?

Offline

#3 2018-10-07 10:21:00

diederick76
Member
Registered: 2010-02-14
Posts: 157

Re: [SOLVED] netctl include directives are deprecated

Raynman wrote:

maybe reenable the profile to update to the new style?

$ sudo netctl reenable static-eno1-100
'/etc/systemd/system/netctl@static\x2deno1\x2d100.service' is verwijderd
'/etc/systemd/system/multi-user.target.wants/netctl@static\x2deno1\x2d100.service' -> '/usr/lib/systemd/system/netctl@.service'
generated '/etc/systemd/system/netctl@static\x2deno1\x2d100.service.d/profile.conf'

(verwijderd means deleted)

Seems to have created and populated the directories mentioned in https://wiki.archlinux.org/index.php/Sy … p-in_files. Excellent.

Thanks!

Offline

Board footer

Powered by FluxBB