summaryrefslogtreecommitdiff
path: root/docs/contributing
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-11-07 08:33:57 +0100
committerChristian Breunig <christian@breunig.cc>2026-11-07 08:33:57 +0100
commitc1449b6f91d5ccbeb77adf5cb4670a1588b27c7e (patch)
treee8452330c5ef9cd6776a3dba6eb38e0ab8ecde05 /docs/contributing
parent2754d2bfda8210de0295a35794e2ccb4021f0f3e (diff)
downloadvyos-documentation-c1449b6f91d5ccbeb77adf5cb4670a1588b27c7e.tar.gz
vyos-documentation-c1449b6f91d5ccbeb77adf5cb4670a1588b27c7e.zip
docs: build-vyos: add macOS notes for Docker builds
On macOS a Docker volume must be used instead of a bind mount from the user's home. Also warn about case-insensitive macOS file systems which break Linux kernel source checkouts.
Diffstat (limited to 'docs/contributing')
-rw-r--r--docs/contributing/build-vyos.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/contributing/build-vyos.md b/docs/contributing/build-vyos.md
index f5b0f511..889e1b27 100644
--- a/docs/contributing/build-vyos.md
+++ b/docs/contributing/build-vyos.md
@@ -38,6 +38,9 @@ Fetch the latest source code from GitHub:
$ git clone -b rolling --single-branch https://github.com/vyos/vyos-build
```
+On macOS, clone the sources inside the build container instead, see the
+note in {ref}`build_docker`.
+
(build_docker)=
### Docker
@@ -59,6 +62,28 @@ group after building the VyOS ISO. See also [Docker as non-root].
The build process must run on a local file system. Building on SMB or
NFS shares will cause the container to fail. VirtualBox shared folders are
also not supported because block device operations are not implemented.
+
+On macOS, do not bind mount a directory from your home folder into the
+container. Use a Docker volume instead and clone the sources inside the
+container directly into the volume:
+
+```none
+$ docker volume create vyos-build
+$ docker run --rm -it --privileged -v vyos-build:/vyos -w /vyos vyos/vyos-build:rolling bash
+vyos_bld@8153428c7e1f:/vyos$ git clone -b rolling --single-branch https://github.com/vyos/vyos-build .
+```
+
+This gives the same `/vyos` layout as a bind mount. Skip the host-side
+`cd vyos-build` and `docker run` steps in {ref}`build-iso` and run the
+build commands in this container.
+
+macOS file systems (APFS, HFS+) are case-insensitive by default. The Linux
+kernel source tree contains files whose names differ only in case (e.g.
+`xt_CONNMARK.h` and `xt_connmark.h`). On such a file system one file
+overwrites the other and the kernel build fails or produces broken
+binaries. A Docker volume lives on the Linux file system of the Docker VM
+and is case-sensitive. If you must use a host directory, put it on a
+case-sensitive APFS volume.
:::
#### Build Container