Class: Dracut::Encrypt

Inherits:
Root
  • Object
show all
Defined in:
lib/dracut/encrypt.rb

Overview

configure dracut for encypted system

Direct Known Subclasses

Hybrid

Instance Method Summary collapse

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(devs, options) ⇒ Encrypt

Returns a new instance of Encrypt.



6
7
8
9
# File 'lib/dracut/encrypt.rb', line 6

def initialize(devs, options)
  @luks = options[:luks_name]
  super
end

Instance Method Details

#generateObject



11
12
13
14
15
# File 'lib/dracut/encrypt.rb', line 11

def generate
  host_only
  cmdline
  luks_key
end