/srv/irclogs.ubuntu.com/2022/04/28/#netplan.txt

OstesteHi,13:36
OstesteAnybody has an idea, how I could possibly modify config files that netplan is creating? In my case I would like to start the wpa_supplicant executable verbose. But when I modify the corresponding service file in /run/systemd/system/netplan-wpa*.service it will be overwritten by the "netplan apply" command.13:36
slyonOsteste: hi! yes, you can use systemd override configs13:37
slyonin your case you could create a corresponding file in /etc/systemd/system/netplan-wpa*.service.d/override.conf and put the sections you want to change in there13:38
slyonthe override.conf will be applied on top of netplan's config in /run/systemd/...13:39
OstesteSounds like a plan! Didn't know about overwrites. DO I have to use the whole file, or just the diff?13:40
slyonjust the diff is enough. see https://unix.stackexchange.com/questions/398540/how-to-override-systemd-unit-file-settings for reference13:41
OstesteThank you! I am about to test this out...13:43
slyonyw13:43
OstesteI used "systemctl edit netplan-wpa-wlp1s0.service" to add a modified ExecStart line of the unit/service file, and it created the override file in /etc. But even after a "systemctl daemon-reload" the apply netplan still starts with the old line created by netplan in /run folder. Did I miss something?13:58
slyonah I think ExecStart= is a special case, you might need to put an empty "ExecStart=" into your override.conf before adding the new "ExecStart=<you config>" afterwards14:01
slyonas ExecStart= can be specified multiple times14:01
Ostesteso two lines into that file, one "ExecStart=" and the other like I want it to become? .. let's try.14:04
Ostestestill no changes in the command line arguments of my wpa_supplicant service, even after reapplying netplan and restarting according service.14:07
slyonhmm I think it should be 3 lines in that file. as you need to specify the "[Service]" section, too14:08
OstesteNot sure what you mean.14:11
OstesteJust the word "[Service]" in a line to let the parser know what section of the unit the line belongs to?14:11
OstesteThat worked out, thanks!!14:14
slyonyes exactly :)14:16

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!