Skip to content

Commit

Permalink
Merge pull request #92 from yast/pkg_init_fix
Browse files Browse the repository at this point in the history
PackageSystem.ycp - do not initialize the target system in the first ins...
  • Loading branch information
lslezak committed Jul 29, 2013
2 parents 39d3bd0 + 4206eeb commit ec000ec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions library/packages/src/PackageSystem.ycp
Expand Up @@ -76,6 +76,14 @@ include "packages/common.ycp";
* This may become superfluous.
*/
global void EnsureTargetInit() {
// do not initialize the target system in the first installation stage when
// running in instsys, there is no RPM DB in the RAM disk image (bnc#742420)
if (Stage::initial() && !Mode::live_installation())
{
y2milestone("Skipping target initialization in first stage installation");
return;
}

PackageLock::Check ();
// always initizalize target, it should be cheap according to #45356
target_initialized = Pkg::TargetInit ("/", false);
Expand Down
7 changes: 7 additions & 0 deletions package/yast2.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jul 29 11:21:23 UTC 2013 - lslezak@suse.cz

- PackageSystem.ycp - do not initialize the target system in the
first installation stage when running in instsys, there is no RPM
DB in the RAM disk image (bnc#742420#c7)

-------------------------------------------------------------------
Thu Jul 18 11:57:12 UTC 2013 - mfilka@suse.com

Expand Down

0 comments on commit ec000ec

Please sign in to comment.