- For both shellprocess and contextualprocess, add a top-level key "timeout" that defaults to 10 seconds (which it already did). - Allows setting "global" timeout for command-lists, while still allowing individual timeouts per-command. - Setting timeout per global variable in contextualprocess is not supported; that would restrict the possible space of comparisions, while not supporting a global setting timeout seems reasonable enough. Use instances if you need wildly variable timeouts and don't want to set them individually.
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
# Configuration for the contextual process job.
|
|
#
|
|
# Contextual processes are based on **global** configuration values.
|
|
# When a given global value (string) equals a given value, then
|
|
# the associated command is executed.
|
|
#
|
|
# The special top-level keys *dontChroot* and *timeout* have
|
|
# meaning just like in shellprocess.conf. They are excluded from
|
|
# the comparison with global variables.
|
|
#
|
|
# Configuration consists of keys for global variable names (except
|
|
# *dontChroot* and *timeout*), and the sub-keys are strings to compare
|
|
# to the variable's value. If the variable has that particular value, the
|
|
# corresponding value (script) is executed.
|
|
#
|
|
# You can check for an empty value with "".
|
|
#
|
|
# Global configuration variables are not checked in a deterministic
|
|
# order, so do not rely on commands from one variable-check to
|
|
# always happen before (or after) checks on another
|
|
# variable. Similarly, the value-equality checks are not
|
|
# done in a deterministic order, but all of the value-checks
|
|
# for a given variable happen together.
|
|
#
|
|
# The values after a value sub-keys are the same kinds of values
|
|
# as can be given to the *script* key in the shellprocess module.
|
|
# See shellprocess.conf for documentation on valid values.
|
|
---
|
|
dontChroot: false
|
|
firmwareType:
|
|
efi:
|
|
- "-pkg remove efi-firmware"
|
|
- command: "-mkinitramfsrd -abgn"
|
|
timeout: 120 # This is slow
|
|
bios: "-pkg remove bios-firmware"
|
|
"": "/bin/false no-firmware-type-set"
|