diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-07-08 23:52:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 23:52:13 +0200 |
commit | 55aacd502b0a80c21aee50bdd0f325d378250261 (patch) | |
tree | 5fa0afda7abdb1695a12b56608e1f9602a5cc1fc /docs | |
parent | Merge pull request #16405 from sipraga/master (diff) | |
parent | portabled: implement container host os-release interface (diff) | |
download | systemd-55aacd502b0a80c21aee50bdd0f325d378250261.tar.xz systemd-55aacd502b0a80c21aee50bdd0f325d378250261.zip |
Merge pull request #15891 from bluca/host_os_release
Container Interface: expose the host's os-release metadata to nspawn and portable guests
Diffstat (limited to 'docs')
-rw-r--r-- | docs/CONTAINER_INTERFACE.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/CONTAINER_INTERFACE.md b/docs/CONTAINER_INTERFACE.md index 71f9185c58..a36d2edc72 100644 --- a/docs/CONTAINER_INTERFACE.md +++ b/docs/CONTAINER_INTERFACE.md @@ -121,6 +121,16 @@ manager, please consider supporting the following interfaces. `container_ttys=pts/7 pts/8 pts/14` it will spawn three additional login gettys on ptys 7, 8, and 14. +4. To allow applications to detect the OS version and other metadata of the host + running the container manager, if this is considered desirable, please parse + the host's `/etc/os-release` and set a `$container_host_<key>=<VALUE>` + environment variable for the ID fields described by the [os-release + interface](https://www.freedesktop.org/software/systemd/man/os-release.html), eg: + `$container_host_id=debian` + `$container_host_build_id=2020-06-15` + `$container_host_variant_id=server` + `$container_host_version_id=10` + ## Advanced Integration 1. Consider syncing `/etc/localtime` from the host file system into the |