Skip to content

Commit

Permalink
Merge pull request #338 from yast/bsc_976228_3
Browse files Browse the repository at this point in the history
fix device name by-path handling (bsc#976228)
  • Loading branch information
wfeldt committed May 20, 2016
2 parents 325ea99 + 8b5deb6 commit f90aef7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions package/yast2-bootloader.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 20 16:14:34 CEST 2016 - snwint@suse.de

- fix device name by-path handling (bsc#976228)
- 3.1.94.10

-------------------------------------------------------------------
Fri Nov 20 07:19:26 UTC 2015 - igonzalezsosa@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.94.9
Version: 3.1.94.10
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
8 changes: 4 additions & 4 deletions src/modules/BootStorage.rb
Expand Up @@ -146,10 +146,10 @@ def MapDevices
Ops.set(@all_devices, dev_by_something, k)
end
# map disk by path
if Ops.get(v, "path") != "" && Ops.get(v, "path") != nil
if Ops.get(v, "udev_path") != "" && Ops.get(v, "udev_path") != nil
dev_by_something = Ops.add(
"/dev/disk/by-path/",
Ops.get_string(v, "path", "")
Ops.get_string(v, "udev_path", "")
)
Ops.set(@all_devices, dev_by_something, k)
end
Expand Down Expand Up @@ -193,10 +193,10 @@ def MapDevices
)
end
# map partition by path
if Ops.get(p, "path") != "" && Ops.get(p, "path") != nil
if Ops.get(p, "udev_path") != "" && Ops.get(p, "udev_path") != nil
dev_by_something = Ops.add(
"/dev/disk/by-path/",
Ops.get_string(p, "path", "")
Ops.get_string(p, "udev_path", "")
)
Ops.set(
@all_devices,
Expand Down

0 comments on commit f90aef7

Please sign in to comment.