From 87e7742451ced1bf52c45331f9aa4c8d82df962d Mon Sep 17 00:00:00 2001 From: Edson Brandi Date: Fri, 7 Nov 2025 22:17:40 +0000 Subject: [PATCH] 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. --- content/chapters/part1/chapter-04.md | 2 +- content/chapters/part1/chapter-06.md | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/content/chapters/part1/chapter-04.md b/content/chapters/part1/chapter-04.md index cec072e..a1ebf43 100644 --- a/content/chapters/part1/chapter-04.md +++ b/content/chapters/part1/chapter-04.md @@ -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. diff --git a/content/chapters/part1/chapter-06.md b/content/chapters/part1/chapter-06.md index a97a4f4..dd136b2 100644 --- a/content/chapters/part1/chapter-06.md +++ b/content/chapters/part1/chapter-06.md @@ -13117,10 +13117,9 @@ 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**: ```bash