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
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
|
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
Wednesday, 18 March 2020, 20:13 GMT
Reason for closing: Fixed
Additional comments about closing: systemd 245.2-1
% 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
%
FS#65823