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:
parent
940b39b77e
commit
5cff6fc390
@ -1820,6 +1820,7 @@ auto lo
|
|||||||
iface lo inet loopback
|
iface lo inet loopback
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
if [ $mgmt_dev != "lo" ]; then
|
||||||
cat << EOF >> /etc/network/interfaces
|
cat << EOF >> /etc/network/interfaces
|
||||||
|
|
||||||
# management network interface
|
# management network interface
|
||||||
@ -1828,6 +1829,7 @@ auto $mgmt_dev
|
|||||||
iface $mgmt_dev inet dhcp
|
iface $mgmt_dev inet dhcp
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
ilog "Setup network scripts"
|
ilog "Setup network scripts"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user