Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/lib/y2storage/clients/inst_disk_proposal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class InstDiskProposal
def initialize
textdomain "storage"

detach_media_and_reprobe

@devicegraph = storage_manager.staging
@proposal = storage_manager.proposal
# Save staging revision to check later if the system was reprobed
Expand Down Expand Up @@ -89,6 +91,18 @@ def run

private

# weird stuff
#
# Local (disk) media sources should not be mounted as the additional
# mountpoints will confuse libstorage-ng when doing the commit.
def detach_media_and_reprobe
Yast.import "PackageCallbacks"
log.info("XXX inst_disk_proposal")

Pkg.SourceReleaseAll
storage_manager.probe
end

# @return [Integer]
attr_reader :initial_staging_revision

Expand Down