Skip to content

Commit

Permalink
Checking if the disk is -partitionable- instead of it is a real disk.…
Browse files Browse the repository at this point in the history
… Needed for Multipath disks
  • Loading branch information
schubi2 committed Jan 19, 2015
1 parent 672b9fd commit 7278f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/AutoinstStorage.rb
Expand Up @@ -1079,7 +1079,7 @@ def Write
result = false
changed = false
Builtins.foreach(@AutoTargetMap) do |device, data|
if Storage.IsRealDisk(data) && data.fetch("initialize", false)
if Storage.IsPartitionable(data) && data.fetch("initialize", false)
Ops.set(initial_target_map, [device, "delete"], true)
changed = true
if data.has_key?("disklabel")
Expand Down Expand Up @@ -1124,7 +1124,7 @@ def Write
)
Builtins.y2milestone("device %1 not found in TargetMap", device)
end
if Storage.IsRealDisk(data)
if Storage.IsPartitionable(data)
@ZeroNewPartitions = data.fetch("zero_new_partitions",true)
# that's not really nice. Just an undocumented fallback which should never be used
Builtins.y2milestone("Creating partition plans for %1", device)
Expand Down

0 comments on commit 7278f6e

Please sign in to comment.