Project

General

Profile

Actions

action #51950

closed

[opensuse] Do not clear repositories when creating image

Added by whdu almost 5 years ago. Updated almost 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2019-05-24
Due date:
% Done:

0%

Estimated time:
1.00 h
Difficulty:

Description

Creating disk image fro openSUSE with PUBLISH_HDD_1 will going through installation procedure. With HAVE_ADDON_REPOS, it will add default online repositories. But after installation it always call update/zypper_clear_repos to clear all online repos, no matter if KEEP_ONLINE_REPOS was set.

zypper_clear_repos was called if need_clear_repos() return true.

So add "&& !get_var('KEEP_ONLINE_REPOS')" in return code for need_clear_repos() should work.

Update(20190718): By investigation of lib/main_common.pm and existing tests create_hdd_gnome in o.o.o., it is found that KEEP_ONLINE_REPOS does work, but with an indirect way. When KEEP_ONLINE_REPOS is set, is_repo_replacement_required() return false. Meanwhile, if have_addn_repos()(should set SUSEMIRROR) was true, then console/zypper_ar will be triggered. Therefore, the cleared repos will be added back to the system before installation finished.

Actions #1

Updated by whdu almost 5 years ago

  • Category changed from New test to Bugs in existing tests
Actions #2

Updated by whdu almost 5 years ago

  • Description updated (diff)
  • Status changed from New to Rejected
Actions

Also available in: Atom PDF