Class: Luks::Boot
Overview
Boot can decrypt all other partitions.
Constant Summary
Constants inherited from Main
Instance Method Summary collapse
-
#initialize(disk, options) ⇒ Boot
constructor
A new instance of Boot.
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, ) super @luks_type = 'luks1' @key_dir = '/boot' @key_name = 'boot.key' @bootloader = true @mount = '/boot' @luks = [:luks_name] @luks_name = "boot-#{@luks}" @command_args = "--type #{@luks_type}" end |