]> git.pld-linux.org Git - packages/rc-scripts.git/blame - lxd-loopback.patch
- release 3 (by relup.sh)
[packages/rc-scripts.git] / lxd-loopback.patch
CommitLineData
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
This page took 0.023788 seconds and 4 git commands to generate.