1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #5382: Fix Firecracker ignores INITRD

Signed-off-by: Akihiko Ota <skywalker.37th@gmail.com>
(cherry picked from commit 692a4e28796287d520a887d5fc6b22e21415a0cf)
This commit is contained in:
Akihiko Ota 2021-05-05 18:17:21 +09:00 committed by Ruben S. Montero
parent 71b8525d3c
commit bf41af6425
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -153,6 +153,12 @@ class FirecrackerVM < OpenNebulaVM
def boot_source(hash)
hash['kernel_image_path'] = 'kernel'
hash['boot_args'] = @xml['//TEMPLATE/OS/KERNEL_CMD']
initrd = @xml['//TEMPLATE/OS/INITRD']
return if (initrd.nil? || initrd.empty?)
hash['initrd_path'] = File.basename(initrd, '/')
end
def machine_config(hash)