Commit 607e2212 authored by Natanael Copa's avatar Natanael Copa

setup-interfaces: do not configure lo on LXC

parent 5618d933
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment