mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +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
@ -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…
x
Reference in New Issue
Block a user