Class: Bootloader::Stage1Proposal::X64
- Inherits:
-
Bootloader::Stage1Proposal
- Object
- Bootloader::Stage1Proposal
- Bootloader::Stage1Proposal::X64
- Defined in:
- src/lib/bootloader/stage1_proposal.rb
Overview
x86_64 specific stage1 proposal
Constant Summary
Constant Summary
Constants inherited from Bootloader::Stage1Proposal
Instance Attribute Summary
Attributes inherited from Bootloader::Stage1Proposal
Instance Method Summary (collapse)
Methods inherited from Bootloader::Stage1Proposal
#assign_bootloader_device, #initialize, propose
Constructor Details
This class inherits a constructor from Bootloader::Stage1Proposal
Instance Method Details
- (Object) propose
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'src/lib/bootloader/stage1_proposal.rb', line 70 def propose selected_location = propose_boot_location log.info "propose_x86 (#{selected_location})" # set active flag, if needed if selected_location == :mbr # We are installing into MBR: # If there is an active partition, then we do not need to activate # one (otherwise we do). # Reason: if we use our own MBR code, we do not rely on the activate # flag in the partition table to boot Linux. Thus, the activated # partition can remain activated, which causes less problems with # other installed OSes like Windows (older versions assign the C: # drive letter to the activated partition). used_disks = ::Bootloader::Stage1Device.new(Yast::BootStorage.mbr_disk).real_devices stage1.activate = used_disks.any? { |d| Yast::Storage.GetBootPartition(d).empty? } stage1.generic_mbr = false else # if not installing to MBR, always activate (so the generic MBR will # boot Linux) stage1.activate = true stage1.generic_mbr = true end end |