Class: CryptReboot::KexecPatchingLoader
- Inherits:
-
Object
- Object
- CryptReboot::KexecPatchingLoader
- Defined in:
- lib/crypt_reboot/kexec_patching_loader.rb
Overview
Patch initramfs and load it along with kernel using kexec, so it is ready to be executed.
Instance Method Summary collapse
Instance Method Details
#call(boot_config = BootConfig.new( kernel: Config.kernel, initramfs: Config.initramfs, cmdline: Config.cmdline )) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/crypt_reboot/kexec_patching_loader.rb', line 7 def call(boot_config = BootConfig.new( kernel: Config.kernel, initramfs: Config.initramfs, cmdline: Config.cmdline )) generator.call(boot_config.initramfs) do |patched_initramfs| patched_boot_config = boot_config.with_initramfs(patched_initramfs) loader.call(patched_boot_config) end end |