Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#55973 - [netctl] Use %i instead of %I in unit file

Attached to Project: Arch Linux
Opened by Artem Pogartsev (arteomp) - Thursday, 12 October 2017, 23:06 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 15 October 2017, 07:58 GMT
Task Type Bug Report
Category Packages: Core
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 0
Private No

Details

Description:

Script wifi-menu by default generate profile config for netctl like "interface-ssid". Because of systemd escaping we need to escape "-" symbol and use "systemctl start/status/stop interface\\x2dssid" or systemd will convert it to the "interface/ssid" and netctl will not find profile config.

Maybe will be good decision to change %I to %i (https://www.freedesktop.org/software/systemd/man/systemd.unit.html) in unit file netctl@.service? Then will be possible to use just systemctl start/status/stop interface-ssid.


Additional info:
Name : netctl
Version : 1.13-2

Steps to reproduce:
1. Create profile config /etc/netctl/interface-ssid
2. run systemctl start/status/stop interface-ssid
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Sunday, 15 October 2017, 07:58 GMT
Reason for closing:  Won't implement
Additional comments about closing:  netctl explicitly moved away from using %I, it is expected that users use netctl [start|stop|status] instead
Comment by Artem Pogartsev (arteomp) - Friday, 13 October 2017, 12:03 GMT
Edited:

Steps to reproduce:
1. Create profile config /etc/netctl/interface-ssid
2. run systemctl start/status/stop netctl@interface-ssid
Comment by Jouke Witteveen (jouke) - Friday, 13 October 2017, 14:12 GMT
You should not use systemctl to start/stop/etc. netctl profiles. Use netctl instead: netctl [start|stop|status|...] <PROFILE>. Let netctl take care of quoting!

As you can see here: https://git.archlinux.org/netctl.git/commit/services/?id=1d49567af0acaca79fe9047703a0d94ebaf31064 netctl has deliberately switched from using %i to using %I in version 0.7.
Comment by Artem Pogartsev (arteomp) - Friday, 13 October 2017, 20:54 GMT
>> As you can see here: https://git.archlinux.org/netctl.git/commit/services/?id=1d49567af0acaca79fe9047703a0d94ebaf31064 netctl has deliberately switched from using %i to using %I in version 0.7.

Ah, ok. Then you can close the ticket.

Loading...