[Buildroot] [Bug 11001] loopback interface not configure properly with ifupdown-scripts + standalone ifupdown + systemd

bugzilla at busybox.net bugzilla at busybox.net
Tue Dec 18 01:39:40 UTC 2018


--- Comment #1 from Trent Piepho <tpiepho at gmail.com> ---
There is another issue that we discovered with the way buildroot's
network.service works with systemd.

Systemd will bring the lo interface up itself early in the boot.  Later, when
network.service runs, it will remove the address from the lo interface, as part
of the ExecStart command in network.service to do exactly that.  At this point
lo no longer has an address.  Then network.service runs ifup -a and properly
configures lo.

There a window, after the address is removed from lo and before ifup runs,
where lo is not configured correctly.  Anything that expects lo to be
configured will fail to start correctly if it happens to hit this window when
it tries to, e.g., bind a socket to an address on the lo interface.

Since the systemd init design is that lo is already up, there are services that
do this and will randomly fail.  It's not necessary to be After network.target
in order to use loopback.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the buildroot mailing list