mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-25 22:46:27 +00:00
Don't use dnf config-manager on modular images
It's not there and can't be installed, at least at present.
This commit is contained in:
parent
b8b2234c35
commit
aaba51768e
@ -322,7 +322,13 @@ sub _repo_setup_compose {
|
|||||||
# tools see only packages from the compose under test
|
# tools see only packages from the compose under test
|
||||||
my $location = get_var("LOCATION");
|
my $location = get_var("LOCATION");
|
||||||
return unless $location;
|
return unless $location;
|
||||||
|
if (get_var("MODULAR")) {
|
||||||
|
# dnf config-manager not currently available on modular composes
|
||||||
|
assert_script_run "sed -i -e 's,enabled=1,enabled=0,g' /etc/yum.repos.d/fedora-modular-server-updates-testing.repo /etc/yum.repos.d/fedora-modular-server-updates.repo'";
|
||||||
|
}
|
||||||
|
else {
|
||||||
assert_script_run 'dnf config-manager --set-disabled updates-testing updates';
|
assert_script_run 'dnf config-manager --set-disabled updates-testing updates';
|
||||||
|
}
|
||||||
# we use script_run here as the rawhide repo file won't always exist
|
# we use script_run here as the rawhide repo file won't always exist
|
||||||
# and we don't want to bother testing or predicting its existence;
|
# and we don't want to bother testing or predicting its existence;
|
||||||
# assert_script_run doesn't buy you much with sed anyway as it'll
|
# assert_script_run doesn't buy you much with sed anyway as it'll
|
||||||
|
Loading…
Reference in New Issue
Block a user