Class: MountFs::Encrypt
Direct Known Subclasses
Hybrid
Instance Method Summary
collapse
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) ⇒ Encrypt
Returns a new instance of Encrypt.
90
91
92
93
|
# File 'lib/mountfs.rb', line 90
def initialize(devs, options)
@luks = options[:luks_name]
super
end
|
Instance Method Details
#mount_boot ⇒ Object
100
101
102
|
# File 'lib/mountfs.rb', line 100
def mount_boot
mount "/dev/mapper/boot-#{@luks}", "#{@mountpoint}/boot"
end
|
#mount_home ⇒ Object
107
108
109
110
111
|
# File 'lib/mountfs.rb', line 107
def mount_home
@home || return
mount "/dev/mapper/home-#{@luks}", "#{@mountpoint}/home"
end
|
#mount_root ⇒ Object
95
96
97
98
|
# File 'lib/mountfs.rb', line 95
def mount_root
umount "/dev/mapper/boot-#{@luks}"
mount "/dev/mapper/root-#{@luks}", @mountpoint
end
|
#mount_swap ⇒ Object
104
105
|
# File 'lib/mountfs.rb', line 104
def mount_swap
end
|