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:
parent
71b8525d3c
commit
bf41af6425
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user