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
Constant Summary
Instance Method Summary (collapse)
-
- (Object) run(stage1)
Update contents of MBR (active partition and booting code).
Instance Method Details
- (Object) run(stage1)
Update contents of MBR (active partition and booting code)
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'src/lib/bootloader/mbr_update.rb', line 19 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 |