Class: CryptReboot::Kexec::Loader
- Inherits:
-
Object
- Object
- CryptReboot::Kexec::Loader
- Defined in:
- lib/crypt_reboot/kexec/loader.rb
Overview
Load new kernel and initramfs into memory, making then ready for later execution
Instance Method Summary collapse
Instance Method Details
#call(boot_config) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/crypt_reboot/kexec/loader.rb', line 7 def call(boot_config) args = [tool, '-al', boot_config.kernel] args += ['--initrd', boot_config.initramfs] if boot_config.initramfs args += boot_config.cmdline ? ['--append', boot_config.cmdline] : ['--reuse-cmdline'] runner.call(*args) end |