Class: Dracut::Lvm

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

Instance Method Summary collapse

Methods inherited from Root

#generate

Methods included from NiTo

cp, echo, echo_a, grep?, mkdir, mount, mount?, mv, rm, search_proc_swaps, sed, sh, swapoff, swapoff_dm, touch, umount

Constructor Details

#initialize(devs, options) ⇒ Lvm

Returns a new instance of Lvm.



5
6
7
8
# File 'lib/dracut/lvm.rb', line 5

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

Instance Method Details

#get_lineObject



10
11
12
# File 'lib/dracut/lvm.rb', line 10

def get_line
  "rd.lvm.vg=#{@vg} root=/dev/#{@vg}/root resume=/dev/#{@vg}/swap rootfstype=#{@fs}"
end