Commit e069f7c
Add
Adds support for merging disparate kernel argument sources into the
single BLS entry `options` field. Each source (e.g., TuneD, admin,
bootc kargs.d) can independently manage its own set of kernel arguments,
tracked via `# x-ostree-options-source-<name>` magic comments in BLS
config files.
Changes:
- Extend BLS parser to parse/preserve source-tracking magic comments
- Add new `loader_entries` module with set-options-for-source logic
- Add `bootc loader-entries set-options-for-source` CLI command
- Add unit tests for merge logic and BLS roundtrip
See: ostreedev/ostree#3570
See: #899
Co-authored-by: cgwalters <244096+cgwalters@users.noreply.github.com>
Agent-Logs-Url: https://github.com/bootc-dev/bootc/sessions/ce7bf603-8a51-4bd9-8653-6e1221a2bdc6bootc loader-entries set-options-for-source command1 parent 5cbb111 commit e069f7c
File tree
4 files changed
+454
-2
lines changed- crates/lib/src
- parsers
4 files changed
+454
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
717 | 767 | | |
718 | 768 | | |
719 | 769 | | |
| |||
813 | 863 | | |
814 | 864 | | |
815 | 865 | | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
816 | 871 | | |
817 | 872 | | |
818 | 873 | | |
| |||
1805 | 1860 | | |
1806 | 1861 | | |
1807 | 1862 | | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
1808 | 1873 | | |
1809 | 1874 | | |
1810 | 1875 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
0 commit comments