diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-11-07 14:45:47 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-11-07 14:45:47 +0100 |
| commit | 752b3177bba7b53dcbbabda14e1d5bdbf1feb75d (patch) | |
| tree | 670611b8bd846edea2117c62639adf7129815d93 /docs | |
| parent | b35901cd61f6afed3a2bc6566499fec816e48702 (diff) | |
| download | vyos-documentation-752b3177bba7b53dcbbabda14e1d5bdbf1feb75d.tar.gz vyos-documentation-752b3177bba7b53dcbbabda14e1d5bdbf1feb75d.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.
(cherry picked from commit c1449b6f91d5ccbeb77adf5cb4670a1588b27c7e)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/contributing/build-vyos.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/contributing/build-vyos.md b/docs/contributing/build-vyos.md index 8decca61..2053fcd1 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 scutum --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:scutum bash +vyos_bld@8153428c7e1f:/vyos$ git clone -b scutum --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 |
