change inst.repo default value

(cherry picked from commit 4f4037ed358f5c589fc841e45e8d5a3629bf6b3d)
(cherry picked from commit 22b0dac2f6f664e89d59244fe582c4416fd3618b)
This commit is contained in:
compile_success 2021-08-07 18:15:11 +08:00 committed by openeuler-sync-bot
parent 697c9893f7
commit 21e5bd10c9
2 changed files with 34 additions and 1 deletions

View File

@ -4,7 +4,7 @@
%endif
Name: anaconda
Version: 33.19
Release: 28
Release: 29
Summary: Graphical system installer
License: GPLv2+ and MIT
URL: http://fedoraproject.org/wiki/Anaconda
@ -116,6 +116,7 @@ Patch6072: fix-xorg-timeout-and-throw-exception.patch
Patch6073: bugfix-Fix-issue-when-ns_info-cannot-be-retrieved-for-NVDim.patch
Patch6074: bugfix-Fix-SECTION-headers-in-docstrings.patch
Patch6075: delete-datezone-map.patch
Patch6076: change-inst-repo-default-value.patch
%define dbusver 1.2.3
%define dnfver 3.6.0
@ -331,6 +332,12 @@ update-desktop-database &> /dev/null || :
%{_datadir}/gtk-doc
%changelog
* Sat Aug 7 2021 zhujunhao <zhujunhao8@huawei.com> - 33.19-29
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:change inst.repo default value
* Sat Aug 7 2021 zhujunhao <zhujunhao8@huawei.com> - 33.19-28
- Type:bugfix
- ID:NA

View File

@ -0,0 +1,26 @@
From e73464ef17f54743dc194ad28e32797a10e844a4 Mon Sep 17 00:00:00 2001
From: ctyuncommiter05 <ctyuncommiter05@chinatelecom.cn>
Date: Thu, 24 Jun 2021 16:30:45 +0800
Subject: [PATCH] change inst.repo default value
Solve the problem of U disk installation failure problem.
---
anaconda.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/anaconda.py b/anaconda.py
index 1abdeb2..44b573c 100755
--- a/anaconda.py
+++ b/anaconda.py
@@ -263,6 +263,8 @@ if __name__ == "__main__":
from pyanaconda.flags import flags
from pyanaconda.core.kernel import kernel_arguments
(opts, depr) = parse_arguments(boot_cmdline=kernel_arguments)
+ if not opts.method:
+ opts.method = opts.stage2
from pyanaconda.core.configuration.anaconda import conf
conf.set_from_opts(opts)
--
2.27.0