Class: Luks::Boot

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

Overview

Boot can decrypt all other partitions.

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?, mv, rm, search_proc_swaps, sed, sh, swapoff, swapoff_dm, touch, umount

Constructor Details

#initialize(disk, options) ⇒ Boot

Returns a new instance of Boot.



199
200
201
202
203
204
205
206
207
208
209
# File 'lib/luks.rb', line 199

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