X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=lib%2Ffunctions.network;fp=lib%2Ffunctions.network;h=ad930e3b9914d6cfb1e2d2ca8939c7929504fb19;hb=196499bef27e2a6e7b4f321ed9886f550550044c;hp=b4ea5d03533d48230516331bc0adba181ef08087;hpb=9688f03ab823fc09f097de03b48bcbd46b7db6ff;p=rc-scripts.git diff --git a/lib/functions.network b/lib/functions.network index b4ea5d0..ad930e3 100644 --- a/lib/functions.network +++ b/lib/functions.network @@ -345,7 +345,8 @@ setup_routes() # Add ONLY IPv4 address (IPv6 address is added automaticly) set_up_loopback() { - if is_yes "$IPV4_NETWORKING"; then + # test if addr is assigned already as lxd(lxc?) initializes loopback upfront + if is_yes "$IPV4_NETWORKING" && ! ip addr show lo | grep -q "127\.0\.0\.1"; then ip addr add 127.0.0.1/8 dev lo fi ip link set dev lo up