diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-11-03 09:17:48 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-11-03 17:05:14 +0100 |
commit | d4317fe1725987671928b441ddd5040aab7befba (patch) | |
tree | 2533311da4b9b600277bb221761aa56231e65fd2 /docs | |
parent | Merge pull request #29508 from CodethinkLabs/systemd-vmspawn-pr (diff) | |
download | systemd-d4317fe1725987671928b441ddd5040aab7befba.tar.xz systemd-d4317fe1725987671928b441ddd5040aab7befba.zip |
nspawn: allow disabling os-release check
Introduce a new env variable $SYSTEMD_NSPAWN_CHECK_OS_RELEASE, that can
be used to disable the os-release check for bootable OS trees. Useful
when trying to boot a container with empty /etc/ and bind-mounted /usr/.
Resolves: #29185
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ENVIRONMENT.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ENVIRONMENT.md b/docs/ENVIRONMENT.md index a884ed86ac..56e79b9384 100644 --- a/docs/ENVIRONMENT.md +++ b/docs/ENVIRONMENT.md @@ -164,6 +164,10 @@ All tools: * `$SYSTEMD_NSPAWN_TMPFS_TMP=0` — if set, do not overmount `/tmp/` in the container with a tmpfs, but leave the directory from the image in place. +* `$SYSTEMD_NSPAWN_CHECK_OS_RELEASE=0` — if set, do not fail when trying to + boot an OS tree without an os-release file (useful when trying to boot a + container with empty `/etc/` and bind-mounted `/usr/`) + * `$SYSTEMD_SUPPRESS_SYNC=1` — if set, all disk synchronization syscalls are blocked to the container payload (e.g. `sync()`, `fsync()`, `syncfs()`, …) and the `O_SYNC`/`O_DSYNC` flags are made unavailable to `open()` and |