Skip to content

Commit

Permalink
ensure new patterns from role is selected (bsc#1088883)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Apr 13, 2018
1 parent dfc7453 commit 771db9b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/installation/select_system_role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
require "installation/system_role"

Yast.import "GetInstArgs"
Yast.import "Packages"
Yast.import "Pkg"
Yast.import "Popup"
Yast.import "ProductControl"
Yast.import "ProductFeatures"
Expand Down Expand Up @@ -191,6 +193,12 @@ def apply_role(role)
log.info "Applying system role '#{role.id}'"
role.overlay_features
adapt_services(role)

# Reset pkg and pattern selection as many roles define own roles
# so ensure when going back that it will properly set (bsc#1088883)
Yast::Pkg.PkgApplReset
Yast::Packages.SelectSystemPatterns(false)
Yast::Pkg.PkgSolve(false)
end

# for given role sets in {::Installation::Services} list of services to enable
Expand Down

0 comments on commit 771db9b

Please sign in to comment.