Am 08.08.2014 21:07, schrieb Niall Walsh:
> Hi
> 
>> I think a better thing would be to block ifup requests from udev script
>> until networking initscript has finished

Why?

> The following diff seems to work.
> 
> --- net.agent.orig      2014-08-08 15:41:17.389440075 +0100
> +++ net.agent   2014-08-08 16:26:46.869439749 +0100
> @@ -49,6 +49,12 @@
> 
>      wait_for_interface lo
> 
> +    if [ -d /run/systemd/system ]; then
> +        while systemctl list-jobs | grep -q network.target ; do
> +            sleep 1
> +        done
> +    fi
> +
>      exec ifup --allow=hotplug $INTERFACE
>  }

Yikes, I certainly won't add a hack like that, i.e. create a

I discussed that with Andrew. The only proper fix is to handle
hotplugged network interfaces via net.agent.

And say I wanted to run hotplugged interfaces after networking.service,
the solution is trivial: We add a After=networking.service to the
ifup@.service unit.

A while loop like the above is a no-no.



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to