From: Daan De Meyer Date: Thu, 28 Sep 2023 10:45:56 +0000 (+0200) Subject: Add Architecture match X-Git-Tag: v18~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b097640caf57d7fcdb08b378af500701ff4b4af;p=thirdparty%2Fmkosi.git Add Architecture match --- diff --git a/mkosi/config.py b/mkosi/config.py index 46e2452aa..d4e4c89da 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -969,6 +969,7 @@ SETTINGS = ( dest="architecture", section="Distribution", parse=config_make_enum_parser(Architecture), + match=config_make_enum_matcher(Architecture), default=Architecture.native(), choices=Architecture.values(), help="Override the architecture of installation", diff --git a/mkosi/resources/mkosi.md b/mkosi/resources/mkosi.md index a41d2e6dc..f61e00c92 100644 --- a/mkosi/resources/mkosi.md +++ b/mkosi/resources/mkosi.md @@ -304,6 +304,12 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`, : Matches against the configured distribution release. If this condition is used and no distribution has been explicitly configured yet, the host distribution and release are used. +`Architecture=` + +: Matches against the configured architecture. If this condition is used + and no architecture has been explicitly configured yet, the host + architecture is used. + `PathExists=` : This condition is satisfied if the given path exists. Relative paths are interpreted relative to the parent @@ -342,6 +348,7 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`, |-------------------|-------|------------------|-------------------------| | `Distribution=` | no | no | match host distribution | | `Release=` | no | no | match host release | +| `Architecture=` | no | no | match host architecture | | `PathExists=` | no | no | match fails | | `ImageId=` | yes | no | match fails | | `ImageVersion=` | no | yes | match fails |