mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-18 03:01:26 +00:00
Revert "Use some nmcli con down/ups to workaround RHBZ #1727411"
This reverts commit 7ec143382f
.
The bug it works around was fixed, so we shouldn't need the work
around any more.
This commit is contained in:
parent
1e729f1281
commit
d34b5a3567
@ -52,12 +52,6 @@ sub setup_tap_static {
|
|||||||
my $conftext = "DEVICE=eth0\nBOOTPROTO=none\nIPADDR=$ip\nGATEWAY=10.0.2.2\nPREFIX=24\nDEFROUTE=yes\nONBOOT=yes" . $dnstext;
|
my $conftext = "DEVICE=eth0\nBOOTPROTO=none\nIPADDR=$ip\nGATEWAY=10.0.2.2\nPREFIX=24\nDEFROUTE=yes\nONBOOT=yes" . $dnstext;
|
||||||
assert_script_run "printf '${conftext}\n' > /etc/sysconfig/network-scripts/ifcfg-eth0";
|
assert_script_run "printf '${conftext}\n' > /etc/sysconfig/network-scripts/ifcfg-eth0";
|
||||||
assert_script_run "systemctl restart NetworkManager.service";
|
assert_script_run "systemctl restart NetworkManager.service";
|
||||||
# FIXME workaround for
|
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1727411
|
|
||||||
# remove when that's resolved
|
|
||||||
script_run 'nmcli con down "Wired connection 1"';
|
|
||||||
script_run 'nmcli con down "System eth0"';
|
|
||||||
script_run 'nmcli con up "System eth0"';
|
|
||||||
# the above doesn't seem to reliably set up resolv.conf, so...
|
# the above doesn't seem to reliably set up resolv.conf, so...
|
||||||
clone_host_file "/etc/resolv.conf";
|
clone_host_file "/etc/resolv.conf";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user