Class: Luks::Root

Inherits:
Main
  • Object
show all
Defined in:
lib/luks.rb

Overview

Root can decrypt the /home or other devs

Constant Summary

Constants inherited from Main

Main::Permission

Instance Method Summary collapse

Methods inherited from Main

#close, #encrypt, #encrypt_with_key, #external_key, #format, #gen_datas, #mount, #open, #open_with_key, #write_config

Methods included from NiTo

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

Constructor Details

#initialize(disk, options) ⇒ Root

Returns a new instance of Root.



214
215
216
217
218
219
220
221
222
223
224
# File 'lib/luks.rb', line 214

def initialize(disk, options)
  super
  @luks_type = 'luks2'
  @key_dir = '/boot'
  @key_name = 'root.key'
  @luks = options[:luks_name]
  @luks_name = "root-#{@luks}"
  @mount = '/'
  @command_args = "--type #{@luks_type}"
  @bootloader = false
end