]>
Commit | Line | Data |
---|---|---|
24583301 | 1 | --- lib/functions.network 2020-02-08 10:48:07.000000000 +0100 |
2 | +++ lib/functions.network.loopback 2020-03-13 11:19:35.602818930 +0100 | |
3 | @@ -345,7 +345,8 @@ | |
4 | # Add ONLY IPv4 address (IPv6 address is added automaticly) | |
5 | set_up_loopback() | |
6 | { | |
7 | - if is_yes "$IPV4_NETWORKING"; then | |
8 | + # test if addr is assigned already as lxd(lxc?) initializes loopback upfront | |
9 | + if is_yes "$IPV4_NETWORKING" && ! ip addr show lo | grep -q "127\.0\.0\.1"; then | |
10 | ip addr add 127.0.0.1/8 dev lo | |
11 | fi | |
12 | ip link set dev lo up |