Class: Getch::FileSystem::Ext4::Lvm::Device

Inherits:
Object
  • Object
show all
Defined in:
lib/getch/filesystem/ext4/lvm/device.rb

Instance Method Summary collapse

Constructor Details

#initializeDevice

Returns a new instance of Device.



10
11
12
13
14
15
16
17
# File 'lib/getch/filesystem/ext4/lvm/device.rb', line 10

def initialize
  @args = { start: true, root: true }
  @vg = OPTIONS[:vg_name] ||= 'vg0'
  @lv_root = "/dev/#{@vg}/root"
  @lv_swap = "/dev/#{@vg}/swap"
  @lv_home = @home_disk ? "/dev/#{@vg}/home" : nil
  x
end