Class: MountFs::Lvm
Instance Method Summary collapse
-
#initialize(devs, options) ⇒ Lvm
constructor
A new instance of Lvm.
- #mount_home ⇒ Object
- #mount_root ⇒ Object
- #mount_swap ⇒ Object
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.
67 68 69 70 |
# File 'lib/mountfs.rb', line 67 def initialize(devs, ) @vg = [:vg_name] super end |
Instance Method Details
#mount_home ⇒ Object
84 85 86 |
# File 'lib/mountfs.rb', line 84 def mount_home mount "/dev/#{@vg}/home", "#{@mountpoint}/home" end |
#mount_root ⇒ Object
72 73 74 |
# File 'lib/mountfs.rb', line 72 def mount_root mount "/dev/#{@vg}/root", @mountpoint end |