summaryrefslogtreecommitdiff
path: root/setup-interfaces.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup-interfaces.in')
-rw-r--r--setup-interfaces.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in
index be75e90..1bf0713 100644
--- a/setup-interfaces.in
+++ b/setup-interfaces.in
@@ -400,8 +400,10 @@ prompt_for_interfaces() {
index=$(( $index + 1 ))
done
- echo "type=loopback" > 000~lo.conf
- echo "" > interface
+ if [ "$(openrc --sys)" != "LXC" ] || ! ip addr show lo | grep -q 'inet.*127\.0'; then
+ echo "type=loopback" > 000~lo.conf
+ echo "" > interface
+ fi
hostname=$(cat $ROOT/etc/hostname 2>/dev/null)
for i in *.conf ; do