From 4af3e5066d3a75e8fb20d60564dec52d1af18998 Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Thu, 13 Feb 2020 22:38:21 -0800 Subject: [PATCH] [interfaces-config.sh] Force lo interface down (#4149) Force "lo" interface down in interfaces-config.sh to prevent interface-config.service from failing with the following error: ``` -- The result is failed. systemd[1]: networking.service: Unit entered failed state. systemd[1]: networking.service: Failed with result 'exit-code'. interfaces-config.sh[29232]: Job for networking.service failed because the control process exited with error code. interfaces-config.sh[29232]: See "systemctl status networking.service" and "journalctl -xe" for details. interfaces-config.sh[29232]: ifdown: interface lo not configured interfaces-config.sh[29232]: RTNETLINK answers: File exists interfaces-config.sh[29232]: ifup: failed to bring up lo systemd[1]: interfaces-config.service: Main process exited, code=exited, status=1/FAILURE systemd[1]: Failed to start Update interfaces configuration. -- Subject: Unit interfaces-config.service has failed ``` Failure to bring down the interface will result in a failure to subsequently bring the interface back up. --- files/image_config/interfaces/interfaces-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/image_config/interfaces/interfaces-config.sh b/files/image_config/interfaces/interfaces-config.sh index 29664bcda5..a625753e36 100755 --- a/files/image_config/interfaces/interfaces-config.sh +++ b/files/image_config/interfaces/interfaces-config.sh @@ -20,4 +20,4 @@ fi systemctl restart networking -ifdown lo && ifup lo +ifdown --force lo && ifup lo