Class: CryptReboot::InitramfsPatchSqueezer

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

Overview

Transform initramfs image into a patch (files hash)

Instance Method Summary collapse

Instance Method Details

#call(initramfs_path) ⇒ Object



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

def call(initramfs_path)
  extractor.call(initramfs_path) do |tmp_dir|
    patchers.inject({}) do |files, patcher|
      files.merge patcher.call(tmp_dir)
    end
  end
end