From: bluhm Date: Thu, 2 Sep 2021 19:38:20 +0000 (+0000) Subject: Do not create loopback interfaces lo1, lo2, ... upfront. They are X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=37db1d1ca7f612d061dd82205520ad6f437fb66a;p=openbsd Do not create loopback interfaces lo1, lo2, ... upfront. They are automatically set up by the kernel when a routing domain is created. An existing lo1 in rdomain 0 would prevent to add any interfaces in rdomain 1. OK kn@ --- diff --git a/etc/netstart b/etc/netstart index b937a70712e..b36b34024fc 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.215 2021/08/30 16:58:52 bluhm Exp $ +# $OpenBSD: netstart,v 1.216 2021/09/02 19:38:20 bluhm Exp $ # Turn off Strict Bourne shell mode. set +o sh @@ -103,6 +103,9 @@ vifscreate() { [[ -f $_hn ]] || continue _if=${_hn#/etc/hostname.} + # loopback for routing domain is created by kernel + [[ -n ${_if##lo[1-9]*} ]] || continue + if ! ifcreate $_if; then print -u2 "${0##*/}: create for '$_if' failed." fi