From 446cbcd0942e7dae7f84705a7fc832af8767b5f6 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 4 Mar 2021 12:06:59 -0800 Subject: [PATCH] README: improve build tags docs 1. Provide a more realistic example of using make BUILDTAGS= 2. Fix nokmem dependencies cell ( was not rendered). 3. Add information about auto-setting nokmem tag for EL7 kernel. Signed-off-by: Kir Kolyshkin --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d60188190f7..69a6c7ccb53 100644 --- a/README.md +++ b/README.md @@ -61,16 +61,19 @@ sudo make install with some of them enabled by default (see `BUILDTAGS` in top-level `Makefile`). To change build tags from the default, set the `BUILDTAGS` variable for make, -e.g. +e.g. to disable `seccomp` and enable `nokmem`, run: ```bash -make BUILDTAGS='seccomp' +make BUILDTAGS="nokmem" ``` | Build Tag | Feature | Enabled by default | Dependency | |-----------|------------------------------------|--------------------|------------| | seccomp | Syscall filtering | yes | libseccomp | -| nokmem | disable kernel memory accounting | no | | +| nokmem | disable kernel memory accounting | usually not | _none_ | + +**Note** `nokmem` build tag is now auto-set by the Makefile in case +the running kernel version looks like one from RHEL7 (3.10.0-\*.el7.) The following build tags were used earlier, but are now obsoleted: - **apparmor** (since runc v1.0.0-rc93 the feature is always enabled)