Add a docker python kore.config.deployment setting.

This keeps kore in the foreground will still doing privsep.
Useful with upcoming official kore docker images.
This commit is contained in:
Joris Vink 2021-05-10 10:27:32 +02:00
parent 0abc9b19ff
commit 61c06291b6
1 changed files with 3 additions and 1 deletions

View File

@ -1866,7 +1866,9 @@ configure_task_threads(char *option)
static int
configure_deployment(char *value)
{
if (!strcmp(value, "dev") || !strcmp(value, "development")) {
if (!strcmp(value, "docker")) {
kore_foreground = 1;
} else if (!strcmp(value, "dev") || !strcmp(value, "development")) {
kore_foreground = 1;
skip_runas = 1;
skip_chroot = 1;