FS#65822 - {netctl} netctl-auto list broken

Attached to Project: Arch Linux
Opened by Matthias Flege (mafl) - Friday, 13 March 2020, 15:43 GMT
Last edited by Christian Hesse (eworm) - Wednesday, 18 March 2020, 20:13 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Jouke Witteveen (jouke)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Running 'netctl-auto list' is not returning any profiles, although netctl-auto is in general working and happily switching between wifis.
I did some debugging, and it seems as if the output of 'systemctl --full --no-legend --no-pager --type=service --state=running list-units' has introduced some indentation, which throws of list_netctl_auto_interfaces() in netctl-auto.

I have applied the following quick and dirty patch, which makes it work again for the moment:

--- /bin/netctl-auto 2019-11-13 17:13:03.000000000 +0100
+++ /root/netctl-auto 2020-03-13 16:25:45.058784990 +0100
@@ -30,7 +30,7 @@
list_netctl_auto_interfaces() {
systemctl --full --no-legend --no-pager \
--type=service --state=running list-units | \
- sed -nr 's/^netctl-auto@([[:alnum:]]+).*/\1/p'
+ sed -nr 's/^ *netctl-auto@([[:alnum:]]+).*/\1/p'
}

## List all profiles available to the WPA supplicant


I am on a newly installed system, so it has never worked for me on that system. But on another system it is working with systemd 244 (it does not show the indentation).


Additional info:
* package version(s)
netctl 1.20
systemd 245 (245-3-arch)

* config and/or log files etc.
n/a

* link to upstream bug report, if any
n/a

Steps to reproduce:

run 'netctl-auto list'. It is not showing any output. Expected is a list of configured network profiles.
This task depends upon

Closed by  Christian Hesse (eworm)
Wednesday, 18 March 2020, 20:13 GMT
Reason for closing:  Fixed
Additional comments about closing:  systemd 245.2-1
Comment by Matthias Flege (mafl) - Friday, 13 March 2020, 15:49 GMT
Just for the record, just updated the second system from systemd 244 (244.3-1-arch) to 245 and netctl-auto stopped working there as well:
% systemctl --version
systemd 245 (245-3-arch)
+PAM +AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid
% netctl-auto list
%
Comment by Daniel Appelt (daniel.appelt) - Sunday, 15 March 2020, 09:33 GMT
Further discussion and possible solutions are also available in the forums at https://bbs.archlinux.org/viewtopic.php?id=253547
Comment by Eli Schwartz (eschwartz) - Wednesday, 18 March 2020, 05:38 GMT
As mentioned in the forums, this is a bug in systemd: https://github.com/systemd/systemd/issues/15077

 FS#65823 

Loading...