Commit 15c6720
committed
fix(base): support readlink applet from busybox
busybox's `readlink` applet does not support the option `-e` option.
These `readlink` calls can be replaced by `realpath`, but `realpath` is
not included in the initrd. So support using `readlink` (when busybox is
used) and fall back to keep using `readlink` otherwise. Since `realpath`
will return successfully on non-existing path, check the path exists if
needed.
Part of: #24371 parent c051f59 commit 15c6720
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
515 | 523 | | |
516 | 524 | | |
517 | | - | |
| 525 | + | |
518 | 526 | | |
519 | 527 | | |
520 | 528 | | |
| |||
645 | 653 | | |
646 | 654 | | |
647 | 655 | | |
648 | | - | |
| 656 | + | |
649 | 657 | | |
650 | 658 | | |
651 | 659 | | |
| |||
727 | 735 | | |
728 | 736 | | |
729 | 737 | | |
| 738 | + | |
730 | 739 | | |
731 | | - | |
| 740 | + | |
732 | 741 | | |
733 | 742 | | |
734 | 743 | | |
| |||
0 commit comments