Class: MountFs::Hybrid

Inherits:
Encrypt show all
Defined in:
lib/mountfs.rb

Instance Method Summary collapse

Methods inherited from Encrypt

#mount_swap

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) ⇒ Hybrid

Returns a new instance of Hybrid.



115
116
117
118
# File 'lib/mountfs.rb', line 115

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

Instance Method Details

#mount_bootObject



125
126
127
# File 'lib/mountfs.rb', line 125

def mount_boot
  mount "/dev/mapper/boot-#{@luks}", "#{@mountpoint}/boot"
end

#mount_homeObject



129
130
131
# File 'lib/mountfs.rb', line 129

def mount_home
  mount "/dev/#{@vg}/home", "#{@mountpoint}/home"
end

#mount_rootObject



120
121
122
123
# File 'lib/mountfs.rb', line 120

def mount_root
  umount "/dev/mapper/boot-#{@luks}"
  mount "/dev/#{@vg}/root", @mountpoint
end