MEDIUM: init: handle arguments earlier
The argument parser runs too late, we'll soon need it before creating pools, hence just after init_early(). No visible change is expected but this part is sensitive enough to be placed into its own commit for easier bisection later if needed.
This commit is contained in:
parent
392524d222
commit
18f96d02d3
@ -2942,13 +2942,13 @@ int main(int argc, char **argv)
|
|||||||
/* now's time to initialize early boot variables */
|
/* now's time to initialize early boot variables */
|
||||||
init_early(argc, argv);
|
init_early(argc, argv);
|
||||||
|
|
||||||
|
/* handles argument parsing */
|
||||||
|
init_args(argc, argv);
|
||||||
|
|
||||||
RUN_INITCALLS(STG_ALLOC);
|
RUN_INITCALLS(STG_ALLOC);
|
||||||
RUN_INITCALLS(STG_POOL);
|
RUN_INITCALLS(STG_POOL);
|
||||||
RUN_INITCALLS(STG_INIT);
|
RUN_INITCALLS(STG_INIT);
|
||||||
|
|
||||||
/* handles argument parsing */
|
|
||||||
init_args(argc, argv);
|
|
||||||
|
|
||||||
/* this is the late init where the config is parsed */
|
/* this is the late init where the config is parsed */
|
||||||
init(argc, argv);
|
init(argc, argv);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user