Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detach local source media and reprobe when doing the storage proposal #1287

Draft
wants to merge 1 commit into
base: SLE-15-SP3
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/lib/y2storage/clients/inst_disk_proposal.rb
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