Commit 67110ae
committed
CA-407115: Adding logic to handle boot entries with no additional arguments
Function readGrub2 parses the arguments for each entries in grub.cfg,
Missing arguments would result in an error in the original code.
So added logic to handle the case of an entry with no arguments (e.g. memtest86+x64.efi).
Signed-off-by: Stephen Cheng <stephen.cheng@cloud.com>1 parent df61175 commit 67110ae
1 file changed
Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
348 | 354 | | |
349 | 355 | | |
350 | 356 | | |
| |||
395 | 401 | | |
396 | 402 | | |
397 | 403 | | |
398 | | - | |
399 | | - | |
| 404 | + | |
400 | 405 | | |
401 | | - | |
402 | | - | |
| 406 | + | |
403 | 407 | | |
404 | 408 | | |
405 | | - | |
406 | | - | |
| 409 | + | |
407 | 410 | | |
408 | 411 | | |
409 | 412 | | |
410 | | - | |
411 | | - | |
| 413 | + | |
412 | 414 | | |
413 | | - | |
414 | | - | |
| 415 | + | |
415 | 416 | | |
416 | 417 | | |
417 | 418 | | |
| |||
0 commit comments