Specify FreeBSD 14.3 release branch in git clone commands

Updated all git clone commands for the FreeBSD source repository to
explicitly checkout the releng/14.3 branch. This ensures readers are
working with FreeBSD 14.3 Release source code, which matches the
version used throughout the book examples.

Changed from:
  git clone https://git.freebsd.org/src.git /usr/src

To:
  git clone -b releng/14.3 https://git.freebsd.org/src.git /usr/src

This prevents confusion from version mismatches and ensures all kernel
module examples compile and function as documented.
This commit is contained in:
Edson Brandi 2025-11-07 22:17:40 +00:00
parent c7c03a1da2
commit 87e7742451
2 changed files with 3 additions and 4 deletions

View file

@ -237,7 +237,7 @@ As we move forward, we'll look at examples from the actual FreeBSD kernel source
To store a complete local copy of the FreeBSD source code, you will need approximately 3.6 GB of free disk space. You can install it using Git by running the following command:
# git clone https://git.freebsd.org/src.git /usr/src
# git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
This will give you access to all source code, which we'll reference frequently throughout this book.

View file

@ -13117,8 +13117,7 @@ Before starting, ensure you have:
```bash
# If /usr/src is missing, install it:
% sudo pkg install git
% cd /usr && sudo git clone -b releng/14.3 --depth 1 \
https://git.freebsd.org/src.git
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
```
3. **Build tools installed**: