setup networking nicely

This commit is contained in:
Pratham Patel 2023-07-29 13:27:37 +05:30
parent 419c669c10
commit a4713b86b0
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,9 @@
%post
# Setup networking temporarily
[ -f /etc/resolv.conf ] || echo "nameserver 1.1.1.1" > /etc/resolv.conf
# The script that expands root partition
[ -d /usr/local/bin ] || mkdir --verbose /usr/local/bin
curl 'https://git.resf.org/thefossguy/rocky-linux-generic-images/raw/branch/r9/scripts/expand-rootfs.sh' --output /usr/local/bin/expand-rootfs.sh

View File

@ -1,6 +1,6 @@
%pre
# Setup networking temporarily
echo "nameserver 1.1.1.1" > /etc/resolv.conf
[ -f /etc/resolv.conf ] || echo "nameserver 1.1.1.1" > /etc/resolv.conf
%end