From 9f94d2741f7259bfb89a4165f035f79683acec3b Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 16 Mar 2023 12:12:38 +0100 Subject: [PATCH] mkosi: Use default timeout of 10s Let's override the default timeout to something more reasonable for mkosi builds. --- .github/workflows/mkosi.yml | 1 + mkosi.build | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index 57b19d462ea..aa56ab303c2 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -91,6 +91,7 @@ jobs: [Content] Environment=CI_BUILD=1 + DEFAULT_TIMEOUT_SEC=90 [Output] KernelCommandLine=${{ env.KERNEL_CMDLINE }} diff --git a/mkosi.build b/mkosi.build index 33b864e211d..24114af4ecf 100755 --- a/mkosi.build +++ b/mkosi.build @@ -63,6 +63,8 @@ if [ ! -f "$BUILDDIR"/build.ninja ] ; then ${PAMDIR:-} \ -D "sysvinit-path=$sysvinit_path" \ -D "rootprefix=$rootprefix" \ + -D default-timeout-sec=${DEFAULT_TIMEOUT_SEC:-10} \ + -D default-user-timeout-sec=${DEFAULT_TIMEOUT_SEC:-10} \ -D man=false \ -D translations=false \ -D version-tag="${VERSION_TAG}" \