Class: Mkfs::Lvm

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

Direct Known Subclasses

Hybrid

Instance Method Summary collapse

Constructor Details

#initialize(devs, options) ⇒ Lvm

Returns a new instance of Lvm.



95
96
97
98
# File 'lib/mkfs.rb', line 95

def initialize(devs, options)
  @vg = options[:vg_name]
  super
end

Instance Method Details

#format_homeObject



108
109
110
# File 'lib/mkfs.rb', line 108

def format_home
  mkfs "/dev/#{@vg}/home"
end

#format_rootObject



104
105
106
# File 'lib/mkfs.rb', line 104

def format_root
  mkfs "/dev/#{@vg}/root"
end

#format_swapObject



100
101
102
# File 'lib/mkfs.rb', line 100

def format_swap
  mk_swap "/dev/#{@vg}/swap"
end