Class: Lvm2::Hybrid

Inherits:
Root
  • Object
show all
Defined in:
lib/lvm2.rb

Overview

Configure hybrid system (encrypt + lvm)

Instance Method Summary collapse

Methods inherited from Root

#x

Constructor Details

#initialize(devs, options) ⇒ Hybrid

Returns a new instance of Hybrid.



106
107
108
109
# File 'lib/lvm2.rb', line 106

def initialize(devs, options)
  super
  @luks = options[:luks_name]
end

Instance Method Details

#load_datasObject



111
112
113
114
115
# File 'lib/lvm2.rb', line 111

def load_datas
  @path_root = "/dev/mapper/root-#{@luks}"
  @path_cache = "/dev/mapper/cache-#{@luks}"
  @path_home = "/dev/mapper/home-#{@luks}"
end