debian: Check management for loopback interface

Ensure that the management network interface is not a
loopback interface otherwise systemctl will report that
the networking job failed on boot.

Test Plan
PASS Build platform-kickstarts
PASS Ensure ISO boots with passing networking job

Closes-Bug: 1976275

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Ia5dd698fd60546cd08bcc033f2255248fb4a877e
This commit is contained in:
Charles Short 2022-05-30 09:13:19 -04:00
parent 940b39b77e
commit 5cff6fc390

View File

@ -1820,6 +1820,7 @@ auto lo
iface lo inet loopback
EOF
if [ $mgmt_dev != "lo" ]; then
cat << EOF >> /etc/network/interfaces
# management network interface
@ -1828,6 +1829,7 @@ auto $mgmt_dev
iface $mgmt_dev inet dhcp
EOF
fi
ilog "Setup network scripts"