Commit d87f24f
committed
Bring back --default to allow OBS builds to select an entry point among many
When building a mkosi repository called 'particleos', OBS calls mkosi as such:
mkosi --directory /usr/src/packages/SOURCES/particleos --default mkosi.conf
with mkosi.conf being the source file extracted at source time, ie: defined
by the user, among the many files available in the repository.
So this can be used to select the entry point, that defines what to build,
when a repository provides many build types, profiles, images, etc.
Right now --default is a no-op, so make it add the passed conf file as a
high priority config file, so that the entry point can have precedence
over anything else.
The file is placed at:
/usr/src/packages/SOURCES/mkosi.conf
This cannot be controlled by the user, and it's fixed.
Config file parsing requires absolute paths, and aborts otherwise.
Because it is called with a filename only, but mkosi executes from the
--directory location, special case it and if a non-absolute path is passed,
look in the parent of --directory so that the use case of providing an
entry point can be enabled.1 parent 44b96b9 commit d87f24f
2 files changed
+29
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1768 | 1768 | | |
1769 | 1769 | | |
1770 | 1770 | | |
| 1771 | + | |
1771 | 1772 | | |
1772 | 1773 | | |
1773 | 1774 | | |
| |||
4328 | 4329 | | |
4329 | 4330 | | |
4330 | 4331 | | |
| 4332 | + | |
| 4333 | + | |
| 4334 | + | |
| 4335 | + | |
| 4336 | + | |
| 4337 | + | |
| 4338 | + | |
| 4339 | + | |
4331 | 4340 | | |
4332 | 4341 | | |
4333 | 4342 | | |
| |||
4412 | 4421 | | |
4413 | 4422 | | |
4414 | 4423 | | |
4415 | | - | |
4416 | | - | |
4417 | | - | |
4418 | | - | |
4419 | 4424 | | |
4420 | 4425 | | |
4421 | 4426 | | |
| |||
4531 | 4536 | | |
4532 | 4537 | | |
4533 | 4538 | | |
| 4539 | + | |
4534 | 4540 | | |
4535 | 4541 | | |
4536 | 4542 | | |
| |||
4810 | 4816 | | |
4811 | 4817 | | |
4812 | 4818 | | |
4813 | | - | |
4814 | | - | |
4815 | | - | |
4816 | | - | |
| 4819 | + | |
| 4820 | + | |
| 4821 | + | |
| 4822 | + | |
| 4823 | + | |
| 4824 | + | |
| 4825 | + | |
| 4826 | + | |
4817 | 4827 | | |
4818 | 4828 | | |
4819 | 4829 | | |
| |||
5146 | 5156 | | |
5147 | 5157 | | |
5148 | 5158 | | |
| 5159 | + | |
| 5160 | + | |
| 5161 | + | |
| 5162 | + | |
| 5163 | + | |
| 5164 | + | |
| 5165 | + | |
| 5166 | + | |
| 5167 | + | |
5149 | 5168 | | |
5150 | 5169 | | |
5151 | 5170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
0 commit comments