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

WIP: set rootprefix from the beginning #1305

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion src/lib/y2storage/clients/inst_prepdisk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def run
# @return [Boolean] true if everything went fine, false if the user
# decided to abort
def commit
manager.rootprefix = Yast::Installation.destdir
return false unless manager.commit(force_rw: true)

mount_in_target("/dev", "devtmpfs", "-t devtmpfs")
Expand Down
2 changes: 2 additions & 0 deletions src/lib/y2storage/storage_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ def create_instance(environment = nil, callbacks = nil)
create_logger
log.info "Creating Storage object"
@instance = new(environment)
@instance.rootprefix = Yast::Installation.destdir
@instance
rescue Storage::LockException => e
raise Yast::AbortException unless retry_create_instance?(e, callbacks)

Expand Down