setup networking nicely
This commit is contained in:
parent
419c669c10
commit
a4713b86b0
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
|
|
||||||
|
# Setup networking temporarily
|
||||||
|
[ -f /etc/resolv.conf ] || echo "nameserver 1.1.1.1" > /etc/resolv.conf
|
||||||
|
|
||||||
# The script that expands root partition
|
# The script that expands root partition
|
||||||
[ -d /usr/local/bin ] || mkdir --verbose /usr/local/bin
|
[ -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
|
curl 'https://git.resf.org/thefossguy/rocky-linux-generic-images/raw/branch/r9/scripts/expand-rootfs.sh' --output /usr/local/bin/expand-rootfs.sh
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
%pre
|
%pre
|
||||||
|
|
||||||
# Setup networking temporarily
|
# 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
|
%end
|
||||||
|
Loading…
Reference in New Issue
Block a user