]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Only lower device timeout instead of all timeouts 27849/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 31 May 2023 14:19:21 +0000 (16:19 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 2 Jun 2023 13:43:28 +0000 (15:43 +0200)
We only really care about lowering the device timeout so we get to
a shell faster when the root device doesn't appear so let's only
lower that timeout instead of lowering all default timeouts.

.github/workflows/mkosi.yml
mkosi.conf.d/10-systemd.conf
mkosi.presets/00-base/mkosi.build

index c0f54d8da4c302f54842f5bc5d595874aac3e6ce..9010b1fcb7b97d9bf0fbf5bd7df8fc9768bc3d8b 100644 (file)
@@ -87,7 +87,6 @@ jobs:
 
         [Content]
         Environment=CI_BUILD=1
-                    DEFAULT_TIMEOUT_SEC=180
                     SLOW_TESTS=true
 
         [Output]
@@ -95,6 +94,8 @@ jobs:
                                systemd.journald.max_level_console=debug
                                # udev's debug log output is very verbose, so up it to info in CI.
                                udev.log_level=info
+                               # Root device can take a long time to appear, so let's bump the timeout.
+                               systemd.default_device_timeout_sec=180
 
         [Host]
         ExtraSearchPaths=!*
index 09e8c5c3f16654326eb5d523cdfb4300bff8bcd6..78b438b5db96ad69d0ae1507e8c87371c72391f9 100644 (file)
@@ -36,3 +36,6 @@ KernelCommandLineExtra=systemd.crash_shell
                        systemd.wants=network-online.target
                        # Make sure we don't load vmw_vmci which messes with virtio vsock.
                        module_blacklist=vmw_vmci
+                       # Lower the default device timeout so we get a shell earlier if the root device does
+                       # not appear for some reason.
+                       systemd.default_device_timeout_sec=10
index 11e8b1c812c604348fe7f7148659be75068ed76e..eb18d27577dc86e3fd112bb8d6d597143de79efa 100755 (executable)
@@ -51,8 +51,6 @@ if [ ! -f "$BUILDDIR"/build.ninja ]; then
     CONFIGURE_OPTS=(
         -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}"