mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-12-22 13:45:39 +00:00
zero out resolv.conf during install
Anaconda is writing an /etc/resolv.conf from the install environment.
The system should start out with an empty file, otherwise cloud-init
will try to use this information and may error:
https://bugs.launchpad.net/cloud-init/+bug/1670052
(cherry picked from commit fc0a635bc4
)
This commit is contained in:
parent
015e301b25
commit
6553b85eba
@ -143,4 +143,10 @@ echo "Adding Developer Mode GRUB2 menu item."
|
|||||||
# fails due to RHBZ #1369794
|
# fails due to RHBZ #1369794
|
||||||
/sbin/chkconfig network off
|
/sbin/chkconfig network off
|
||||||
|
|
||||||
|
# Anaconda is writing an /etc/resolv.conf from the install environment.
|
||||||
|
# The system should start out with an empty file, otherwise cloud-init
|
||||||
|
# will try to use this information and may error:
|
||||||
|
# https://bugs.launchpad.net/cloud-init/+bug/1670052
|
||||||
|
truncate -s 0 /etc/resolv.conf
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
@ -278,5 +278,11 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-ens3
|
|||||||
rm -f /etc/machine-id
|
rm -f /etc/machine-id
|
||||||
touch /etc/machine-id
|
touch /etc/machine-id
|
||||||
|
|
||||||
|
# Anaconda is writing an /etc/resolv.conf from the install environment.
|
||||||
|
# The system should start out with an empty file, otherwise cloud-init
|
||||||
|
# will try to use this information and may error:
|
||||||
|
# https://bugs.launchpad.net/cloud-init/+bug/1670052
|
||||||
|
truncate -s 0 /etc/resolv.conf
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user