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