-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(zypp): Fixed moving libzypp target to
/mnt
(#1352)
## Problem - Moving the libzypp target to `/mnt` (the target installed system) happened too early, already in the "propose" step, it needs to happen after partitioning the disk. - The side effect of this is that mounting the `/mnt` partition can shadow the libzypp cache so it could crash later. Also the next target used after the product change would be the `/mnt` instead of the `/run/agama/zypp`. ## Solution - Move the target change to the "install" step ## Notes - I found out that the `Pkg.SourceCacheCopyTo` call does not work properly with target different than `/`. It always copies the data from `/` ignoring the current target. - It could copy some wrong data from the Live ISO to the target, as a quick solution I have commented that out. I'll fix it later in a separate PR. ## Testing - Tested manually - Updated unit tests
- Loading branch information
Showing
4 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters