Skip to content

Commit

Permalink
add documentation for class
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Sep 18, 2014
1 parent 182646a commit 851ffca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/bootloader/backup_br.rb
Expand Up @@ -3,13 +3,16 @@
Yast.import "BootCommon"

module Bootloader
# Responsibility of class is to manage backups of MBR, respective PBR of disk,
# respective partition.
class BackupBR
class << self
include Yast::Logger
BASH_PATH = Yast::Path.new(".target.bash")
BASH_OUTPUT_PATH = Yast::Path.new(".target.bash_output")
MAIN_BACKUP_DIR = "/var/lib/YaST2/backup_boot_sectors/"
KEPT_BACKUPS = 10

# Creates backup of MBR or PBR of given device.
# Backup is stored in /var/lib/YaST2/backup_boot_sectors, in logs
# directory and if it is MBR of primary disk, then also in /boot/backup_mbr
Expand Down

0 comments on commit 851ffca

Please sign in to comment.