Project

General

Profile

action #51950

[opensuse] Do not clear repositories when creating image

Added by whdu about 2 years ago. Updated about 2 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.

History

#1 Updated by whdu about 2 years ago

  • Category changed from New test to Bugs in existing tests

#2 Updated by whdu about 2 years ago

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

Also available in: Atom PDF