[arch-projects] [netctl][PATCH] Support dynamically appearing interfaces

Thomas Bächler thomas at archlinux.org
Fri Feb 15 04:40:52 EST 2013


Am 14.02.2013 21:45, schrieb Jouke Witteveen:
> On Tue, Feb 12, 2013 at 1:40 PM, Ivan Shapovalov <intelfx100 at gmail.com> wrote:
>> If a profile is WantedBy=multi-user.target, it breaks init sequence
>> if its interface is not immediately available at runtime
>> (e. g. a cell-phone or USB modem).
> 
> Does this work? Is there a reason not to make the device the default trigger?

That's an interesting question. You can always add a profile as a
dependency to
 /etc/systemd/system/sys-subsystem-net-devices-FOO.device.wants/
and add
 BindsTo=sys-subsystem-net-devices-FOO.device
so it goes down when the devices vanishes. This is actually pretty nice
if you think about it.

But do we really want that? Some people may say that they only want
their devices going up when they launch multi-user.target, but not when
they launch rescue.target. It's a matter you should consider carefully.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20130215/9d71d57d/attachment.asc>


More information about the arch-projects mailing list