Class: Bootloader::Stage1Proposal::PPC

Inherits:
Bootloader::Stage1Proposal show all
Defined in:
src/lib/bootloader/stage1_proposal.rb

Overview

ppc64le specific stage1 proposal

Constant Summary

Constant Summary

Constants inherited from Bootloader::Stage1Proposal

AVAILABLE_PROPOSALS

Instance Attribute Summary

Attributes inherited from Bootloader::Stage1Proposal

#stage1

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



198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# File 'src/lib/bootloader/stage1_proposal.rb', line 198

def propose
  partition = proposed_prep_partition
  if partition
    assign_bootloader_device([:custom, partition])

    stage1.activate = !on_gpt?(partition) # do not activate on gpt disks see (bnc#983194)
    stage1.generic_mbr = false
  # handle diskless setup, in such case do not write boot code anywhere
  # (bnc#874466)
  # we need to detect what is mount on /boot and if it is nfs, then just
  # skip this proposal. In other case if it is not nfs, then it is error
  # and raise exception.
  # powernv do not have prep partition, so we do not have any partition
  # to activate (bnc#970582)
  elsif Yast::BootStorage.disk_with_boot_partition == "/dev/nfs" || Yast::Arch.board_powernv
    stage1.activate = false
    stage1.generic_mbr = false
    return
  else
    raise "there is no prep partition"
  end
end