Skip to content

Commit

Permalink
Merge pull request #261 from yast/review_150910_autoyast_init_libstorage
Browse files Browse the repository at this point in the history
[Review] Request from 'schubi2' @ 'yast/yast-bootloader/review_150910_autoyast_init_libstorage'
  • Loading branch information
schubi2 committed Sep 10, 2015
2 parents 7531db2 + fd3f60e commit 92eccf5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions package/yast2-bootloader.changes
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Sep 10 14:45:51 CEST 2015 - schubi@suse.de

- AutoYaST configuration: Initialize libstorage and do not regard
the installed system.
(bnc#942360)
- 3.1.147

-------------------------------------------------------------------
Fri Sep 4 15:17:27 CEST 2015 - snwint@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-bootloader.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-bootloader
Version: 3.1.146
Version: 3.1.147
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
4 changes: 4 additions & 0 deletions src/modules/BootStorage.rb
Expand Up @@ -415,6 +415,10 @@ def real_disks_for_partition(partition)
# Sets properly boot, root and mbr disk.
# @return true if proposal need to be reconfigured
def detect_disks
# The AutoYaST config mode does access to the system.
# bnc#942360
return if Mode.config

mp = Storage.GetMountPoints

mountdata_boot = mp["/boot"] || mp["/"]
Expand Down
2 changes: 2 additions & 0 deletions src/modules/Bootloader.rb
Expand Up @@ -542,6 +542,8 @@ def ReadOrProposeIfNeeded
log.info "Not reading settings in Mode::config ()"
BootCommon.was_read = true
BootCommon.was_proposed = true
log.info "But initialize libstorage in readonly mode" # bnc#942360
Storage.InitLibstorage(true)
elsif Stage.initial && !Mode.update
Propose()
else
Expand Down

0 comments on commit 92eccf5

Please sign in to comment.