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