Commit 3c4bde4
committed
Create symbolic link after device tree is set
The commit creates API to set sym link to system config JSON
once device tree is set.
This is required because in existing code if VPD_SYMLIMK_PATH
is not found and fitconfig value is also not correctly set at
the same time, then symlink is created first and then code
flow goes to set fitconfig and reboot. It never goes into the
flow to set asset tag with factory reset flag set. Hence asset
tag never gets updated.
Test:
Clear sym link path,
set fitconfig to some default value
clear asset tag data from system inventory path
reboot the system.
Introspect the system inventory path.
Asset tag interface and data should be visible.
xyz.openbmc_project.Inventory.Decorator.AssetTag interface - - -
.AssetTag property s "Server-9043-MRX-13E8D2X" emits-change writable
Signed-off-by: Sunny Srivastava <[email protected]>1 parent 9f1a13a commit 3c4bde4
2 files changed
+48
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
489 | 499 | | |
490 | 500 | | |
491 | 501 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
| 426 | + | |
427 | 427 | | |
428 | | - | |
429 | | - | |
430 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
| 436 | + | |
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
| 441 | + | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
| 447 | + | |
448 | 448 | | |
449 | 449 | | |
| 450 | + | |
450 | 451 | | |
451 | | - | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
452 | 460 | | |
453 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
454 | 469 | | |
455 | 470 | | |
456 | 471 | | |
| |||
460 | 475 | | |
461 | 476 | | |
462 | 477 | | |
463 | | - | |
464 | | - | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
465 | 484 | | |
466 | 485 | | |
467 | 486 | | |
468 | 487 | | |
469 | | - | |
470 | | - | |
471 | 488 | | |
472 | 489 | | |
473 | 490 | | |
| |||
476 | 493 | | |
477 | 494 | | |
478 | 495 | | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | 496 | | |
521 | 497 | | |
522 | 498 | | |
523 | | - | |
| 499 | + | |
524 | 500 | | |
525 | 501 | | |
526 | 502 | | |
| |||
549 | 525 | | |
550 | 526 | | |
551 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
552 | 534 | | |
553 | 535 | | |
554 | 536 | | |
| |||
0 commit comments