2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +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:
Pavel Tikhomirov
2021-12-23 17:19:49 +03:00
committed by Andrei Vagin
parent 6a25420d35
commit f6b52c711e

View File

@@ -185,9 +185,6 @@ int main(int argc, char *argv[], char *envp[])
return cr_service_work(atoi(argv[optind + 1])); return cr_service_work(atoi(argv[optind + 1]));
} }
if (check_options())
return 1;
if (opts.imgs_dir == NULL) if (opts.imgs_dir == NULL)
SET_CHAR_OPTS(imgs_dir, "."); SET_CHAR_OPTS(imgs_dir, ".");
@@ -264,6 +261,9 @@ int main(int argc, char *argv[], char *envp[])
return 1; return 1;
} }
if (check_options())
return 1;
if (fault_injected(FI_CANNOT_MAP_VDSO)) if (fault_injected(FI_CANNOT_MAP_VDSO))
kdat.can_map_vdso = 0; kdat.can_map_vdso = 0;