Class: Bootloader::MBRUpdate
- Inherits:
-
Object
- Object
- Bootloader::MBRUpdate
- Includes:
- Yast::Logger
- Defined in:
- src/lib/bootloader/mbr_update.rb
Overview
this class place generic MBR wherever it is needed and also mark needed partitions with boot flag and legacy_boot FIXME: make it single responsibility class
Instance Method Summary collapse
-
#run(stage1) ⇒ Object
Update contents of MBR (active partition and booting code).
Instance Method Details
#run(stage1) ⇒ Object
Update contents of MBR (active partition and booting code)
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'src/lib/bootloader/mbr_update.rb', line 21 def run(stage1) log.info "Stage1: #{stage1.inspect}" @stage1 = stage1 create_backups # Rewrite MBR with generic boot code only if we do not plan to install # there bootloader stage1 install_generic_mbr if stage1.generic_mbr? && !stage1.mbr? activate_partitions if stage1.activate? end |