multiboot.diff
| src/vmm/LibVirtDriverKVM.cc | ||
|---|---|---|
| 36 | 36 |
int memory_in_kb = 0; |
| 37 | 37 | |
| 38 | 38 |
string emulator_path = ""; |
| 39 |
stringstream stream; |
|
| 39 | 40 | |
| 40 | 41 |
string kernel = ""; |
| 41 | 42 |
string initrd = ""; |
| 42 | 43 |
string boot = ""; |
| 44 |
string boot_option= ""; |
|
| 43 | 45 |
string root = ""; |
| 44 | 46 |
string kernel_cmd = ""; |
| 45 | 47 |
string bootloader = ""; |
| ... | ... | |
| 253 | 255 |
file << "\t\t<bootloader>" << bootloader << "</bootloader>" << endl; |
| 254 | 256 |
} |
| 255 | 257 | |
| 256 | ||
| 257 |
file << "\t\t<boot dev='" << boot << "'/>" << endl; |
|
| 258 |
stream << boot; |
|
| 259 |
while(getline(stream, boot_option, ',')) |
|
| 260 |
{
|
|
| 261 |
file << "\t\t<boot dev='" << boot_option << "'/>" << endl; |
|
| 262 |
} |
|
| 258 | 263 | |
| 259 | 264 |
file << "\t</os>" << endl; |
| 260 | 265 | |