Class: CryptReboot::ZfsKeystorePatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/crypt_reboot/zfs_keystore_patcher.rb

Overview

Generate patch (files hash) from files in a directory containing uncompressed initramfs

Instance Method Summary collapse

Instance Method Details

#call(dir) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/crypt_reboot/zfs_keystore_patcher.rb', line 6

def call(dir)
  crypttab_entries = entries_generator.call
  return {} if crypttab_entries.empty?

  files_generator
    .call(crypttab_entries, base_dir: dir, crypttab_path: tmp_crypttab_path)
    .merge(script_patch_files(dir))
end