remove leftover network-realted files

This commit is contained in:
Pratham Patel 2023-07-29 21:39:25 +05:30
parent b2609a3926
commit 3ad813b09f
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -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