Class: Luks::Home

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

Overview

define home partition for luks

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

Returns a new instance of Home.



229
230
231
232
233
234
235
236
237
238
239
# File 'lib/luks.rb', line 229

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