Skip to content

Commit

Permalink
Merge pull request #403 from yast/SLE-12-SP1_bnc_1018180
Browse files Browse the repository at this point in the history
Edit AY settings
  • Loading branch information
schubi2 committed Jan 10, 2017
2 parents b7b52e7 + 9442a9f commit 8664d87
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
7 changes: 7 additions & 0 deletions package/yast2-bootloader.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jan 10 10:57:15 CET 2017 - schubi@suse.de

- AutoYaST: Do not crash while editing settings in AutoYaST
configuration module (with device_maps) (bnc#1018180)
- 3.1.163

-------------------------------------------------------------------
Tue Nov 29 09:17:26 UTC 2016 - jreidinger@suse.com

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


Name: yast2-bootloader
Version: 3.1.162
Version: 3.1.163
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
5 changes: 4 additions & 1 deletion src/include/bootloader/routines/misc.rb
Expand Up @@ -102,7 +102,10 @@ def getAnyTypeAttrib(attrib, defaultv)
# @return [Hash{String => String}] globals

def remapGlobals(globals_set)
return globals_set if !Arch.ppc && Storage.GetDefaultMountBy == :label
if Mode.config || # AutoYaST configuration mode --> no Storage available
!Arch.ppc && Storage.GetDefaultMountBy == :label
return globals_set
end

globals_set["boot_custom"] &&=
::Bootloader::UdevMapping.to_kernel_device(globals_set["boot_custom"])
Expand Down
5 changes: 3 additions & 2 deletions src/lib/bootloader/device_map.rb
Expand Up @@ -43,8 +43,9 @@ def disks_order
# or to label (ufo_disk)
# @return [Hash{String => String}] new device map
def remapped_hash
if !Yast::Arch.ppc
return to_hash if Yast::Storage.GetDefaultMountBy == :label
if Yast::Mode.config || # AutoYaST configuration mode --> no Storage available
!Yast::Arch.ppc && Yast::Storage.GetDefaultMountBy == :label
return to_hash
end

# convert device names in device map to the device names by device or label
Expand Down

0 comments on commit 8664d87

Please sign in to comment.