From 3ad813b09fc8abde333989c4fc2db2ee9e6decd5 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sat, 29 Jul 2023 21:39:25 +0530 Subject: [PATCH] remove leftover network-realted files --- includes/post-install.ksi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/post-install.ksi b/includes/post-install.ksi index 61774d1..f61cb7e 100644 --- a/includes/post-install.ksi +++ b/includes/post-install.ksi @@ -11,8 +11,9 @@ curl 'https://git.resf.org/thefossguy/rocky-linux-generic-images/raw/branch/r9/s [ -f /usr/local/bin/expand-rootfs.sh ] && \ chmod --verbose +x /usr/local/bin/expand-rootfs.sh -# Remove 'ifcfg-link' on generated images +# Remove all network connections and/or links rm -v -f /etc/sysconfig/network-scripts/ifcfg-link +rm -v -f /etc/NetworkManager/system-connections/*.nmconnection # Remove the temporary 'resolv.conf' file rm -v -f /etc/resolv.conf