1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-08-15 15:00:28 +03:00

boot/init: Disable device wait when set to 0

This commit is contained in:
Samuel Dionne-Riel 2024-03-27 20:31:10 -04:00
parent ef941ecad6
commit 1c29d2d643

View File

@ -86,6 +86,8 @@ class Tasks::Splash < SingletonTask
# Minimum amount of time spent waiting for devices, in seconds.
wait_for_devices_delay = Configuration["quirks"]["wait_for_devices_delay"]
return unless wait_for_devices_delay > 0
# Number of times this is looking at the state every second.
# This is the "precision" at which it works, e.g. wait_for_devices_delay + (1.0/looks_per_second)
# is the approximative minimum amount of time this will wait for.