B #5382: Fix Firecracker ignores INITRD

Signed-off-by: Akihiko Ota <skywalker.37th@gmail.com>
(cherry picked from commit 692a4e2879)
This commit is contained in:
Akihiko Ota authored and Ruben S. Montero committed 2021-05-05 18:02:36 +02:00
1 parent bfc6ec86c2
commit 8f15eeeac2
1 file changed
+6
@@ -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)