FS#33685 - [dhcpcd] Unit file needs to be updated for 'systemctl enable'
Attached to Project:
Arch Linux
Opened by Mantas Mikulėnas (grawity) - Sunday, 03 February 2013, 11:37 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 09 February 2013, 16:57 GMT
Opened by Mantas Mikulėnas (grawity) - Sunday, 03 February 2013, 11:37 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 09 February 2013, 16:57 GMT
|
Details
In its early versions, systemd could not enable unit
instances, so our dhcpcd@.service had to say:
[Install] Alias=multi-user.target.wants/dhcpcd@eth0.service However, since version 188 [29283ea4c] (that's 9 versions ago) systemd *can* enable and disable unit instances. So the above Alias line should be replaced with: [Install] WantedBy=multi-user.target This has become much more important when persistent interface names were introduced, since regardless of what interface the user tries to enable dhcpcd on, the Alias causes a symlink for the NONEXISTENT eth0 interface to be added – meaning that the user has to go and create symlinks manually. Using WantedBy would fix this. |
This task depends upon
Closed by Dave Reisner (falconindy)
Saturday, 09 February 2013, 16:57 GMT
Reason for closing: Fixed
Additional comments about closing: core/dhcpcd-5.6.4-2
Saturday, 09 February 2013, 16:57 GMT
Reason for closing: Fixed
Additional comments about closing: core/dhcpcd-5.6.4-2
https://bugs.archlinux.org/task/31093
I see no valid reason why the Alias=* is not replaced with WantedBy=multi-user.target.