Class: Dracut::Lvm
Instance Method Summary collapse
- #get_line ⇒ Object
-
#initialize(devs, options) ⇒ Lvm
constructor
A new instance of Lvm.
Methods inherited from Root
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, ) super @vg = [:vg_name] ||= 'vg0' end |
Instance Method Details
#get_line ⇒ Object
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 |