Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ To double-check, the first line of the `runc --version` output should show `vers
```bash
git clone https://github.com/opencontainers/runc.git $GOPATH/src/github.com/opencontainers/runc
cd $GOPATH/src/github.com/opencontainers/runc
make BUILDTAGS="selinux seccomp"
make EXTRA_BUILDTAGS="selinux seccomp"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
make EXTRA_BUILDTAGS="selinux seccomp"
make RUNC_BUILDTAGS="selinux"

runc default already includes seccomp

sudo cp runc /usr/bin/runc
```

Expand Down Expand Up @@ -524,24 +524,24 @@ First, ensure that the `go version` that is found first on the $PATH is 1.23.x o
```bash
git clone https://github.com/containers/podman/
cd podman
make BUILDTAGS="selinux seccomp" PREFIX=/usr
make EXTRA_BUILDTAGS="selinux seccomp" PREFIX=/usr
sudo env PATH=$PATH make install PREFIX=/usr
```

#### Build Tags

Otherwise, if you do not want to build Podman with seccomp or selinux support you can add `BUILDTAGS=""` when running make.
If you want to build Podman and auto-detect tags, omit the `BUILDTAGS` option when running make.

```bash
make BUILDTAGS=""
make
sudo make install
```

Podman supports optional build tags for compiling support of various features.
To add build tags to the make option the `BUILDTAGS` variable must be set, for example:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you want

Suggested change
To add build tags to the make option the `BUILDTAGS` variable must be set, for example:
To add build tags while keeping auto-detected defaults, set EXTRA_BUILDTAGS, for example:


```bash
make BUILDTAGS='seccomp apparmor'
make EXTRA_BUILDTAGS='seccomp apparmor'
```

If you are building on RHEL8 you'll need to build without btrfs support due to [it being removed](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/8/html/considerations_in_adopting_rhel_8/file-systems-and-storage_considerations-in-adopting-rhel-8#btrfs-has-been-removed_file-systems-and-storage):
Expand Down