sysext: introduce ARCHITECTURE field to match host architecture
authorKai Lueke <kailuke@microsoft.com>
Tue, 9 Aug 2022 15:07:20 +0000 (17:07 +0200)
committerKai Lueke <kailuke@microsoft.com>
Mon, 15 Aug 2022 08:54:32 +0000 (10:54 +0200)
commit16c1ca0db4cf6dd33cff1239df8dd9c366cee914
treec34d3a4cdeaa0de6ddfba1e6802f33888cb1f5bc
parentab4d43c54e977e5e53a98da3e77fd71a62b4fbfb
sysext: introduce ARCHITECTURE field to match host architecture

When an extension image has binaries they should match the host
architecture. Currently there is no way to specify this requirement.
Introduce an ARCHITECTURE field in the extension's release file that
may be set to prevent loading on the wrong host architecture.
Since this new field is introduced late, we don't want to make
specifying it mandatory as it would break existing sysext images.

See https://github.com/systemd/systemd/issues/24061
man/os-release.xml
man/systemd-sysext.xml
src/shared/extension-release.c
test/test-functions