loopback-setup: also add IP addresses to loopback devices
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Jun 2017 10:07:03 +0000 (12:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Jun 2017 10:07:03 +0000 (12:07 +0200)
commitfb8939274a93d713575a409e9baab55a5638863a
treece4a6ba6bc9130edbae7b6d66b1d977785d05eb2
parent3becdb8ac65e4ff041dd8d3dc56083dbb9e19f2f
loopback-setup: also add IP addresses to loopback devices

This changes loopback setup to not only start the loopback device but
also add the relevant IP addresses to it. This way, we can synchronously
wait until that's complete, and properly guarantee that loopback setup
is complete at the time we start our first processes.

This is a semi-revert of f3fc48150bb443f5b4623a819ebc2b39971a4f66, but
heavily updated.

Fixes: #5641
src/core/loopback-setup.c