mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
crtools: move check_options after kerndat_init and log_init
This can be useful to check options which depend on some kernel features listed in kdat. Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
This commit is contained in:
parent
6a25420d35
commit
f6b52c711e
1 changed files with 3 additions and 3 deletions
|
|
@ -185,9 +185,6 @@ int main(int argc, char *argv[], char *envp[])
|
|||
return cr_service_work(atoi(argv[optind + 1]));
|
||||
}
|
||||
|
||||
if (check_options())
|
||||
return 1;
|
||||
|
||||
if (opts.imgs_dir == NULL)
|
||||
SET_CHAR_OPTS(imgs_dir, ".");
|
||||
|
||||
|
|
@ -264,6 +261,9 @@ int main(int argc, char *argv[], char *envp[])
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (check_options())
|
||||
return 1;
|
||||
|
||||
if (fault_injected(FI_CANNOT_MAP_VDSO))
|
||||
kdat.can_map_vdso = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue