From 6df91143baceb2535c847719f6c0102662658954 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 16 Mar 2023 17:38:38 +0100 Subject: [PATCH] board/common: no need to clean up rc.local or /etc/network/* In managed NETCONF mode /etc is always based on the image's read-only /etc with a read-writable overlay as a RAM disk. We control the image and know the default rc.local is empty and the interfaces file only list the loopback interface. Signed-off-by: Joachim Wiberg --- board/common/rootfs/lib/infix/clean-etc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/board/common/rootfs/lib/infix/clean-etc b/board/common/rootfs/lib/infix/clean-etc index b2c998f5..ab2a0ddc 100755 --- a/board/common/rootfs/lib/infix/clean-etc +++ b/board/common/rootfs/lib/infix/clean-etc @@ -3,11 +3,8 @@ # This is an unmanaged node, leave /etc as-is /lib/infix/use-etc && exit 0 -# This is a managed node, ignore all default configuration... -rm -f /etc/rc.local -rm -rf /etc/network/interfaces* - -#...except for some core services +# This is a managed node, ignore all default configuration ... +# ... except for some core services reserved() { for svc in clixon getty lldpd nginx sysklogd; do