Skip to content

Commit

Permalink
use for constant storage module Partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Sep 4, 2014
1 parent c756868 commit 0ddf779
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/include/bootloader/grub2/misc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def initialize_bootloader_grub2_misc(include_target)
Yast.import "PackageSystem"
Yast.import "Map"
Yast.import "Arch"
Yast.import "Partitions"
end

# --------------------------------------------------------------
Expand Down Expand Up @@ -109,9 +110,9 @@ def grub_getPartitionToActivate(loader_device)

tm = Storage.GetTargetMap
partitions = Ops.get_list(tm, [mbr_dev, "partitions"], [])
# do not select swap and do not select BIOS grub partition (fsid 263)
# do not select swap and do not select BIOS grub partition
# as it clear its special flags (bnc#894040)
partitions.select! { |p| p["used_fs"] != :swap && p["fsid"] != 263 }
partitions.select! { |p| p["used_fs"] != :swap && p["fsid"] != Partitions.fsid_bios_grub }
# (bnc # 337742) - Unable to boot the openSUSE (32 and 64 bits) after installation
# if loader_device is disk Choose any partition which is not swap to
# satisfy such bios (bnc#893449)
Expand Down

0 comments on commit 0ddf779

Please sign in to comment.