mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
feature #1617: Add initrd management for file datastore
This commit is contained in:
parent
46c3a8ec1c
commit
7fa82c51f9
@ -429,11 +429,27 @@ int VirtualMachine::parse_os(string& error_str)
|
||||
}
|
||||
else
|
||||
{
|
||||
os->replace("KERNEL", "kernel");
|
||||
os->remove("KERNEL");
|
||||
os->replace("KERNEL_DS", result);
|
||||
}
|
||||
}
|
||||
|
||||
initrd_ds = os->vector_value("INITRD_DS");
|
||||
|
||||
if (!initrd_ds.empty())
|
||||
{
|
||||
if ( parse_file_attribute(initrd_ds, result) != 0 )
|
||||
{
|
||||
error_str = result;
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
os->remove("INITRD");
|
||||
os->replace("INITRD_DS", result);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user