Skip to content

Commit

Permalink
raise attention on macOS Case-sensitive volume
Browse files Browse the repository at this point in the history
  • Loading branch information
andiradulescu committed Jul 18, 2024
1 parent 03d7faf commit d2505a3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Validating changes:

Building the kernel on macOS requires the volume you work in to be [Case-sensitive](https://support.apple.com/lv-lv/guide/disk-utility/dsku19ed921c/mac).

The recommended way is to create an [APFS (Case-sensitive)](https://support.apple.com/lv-lv/guide/disk-utility/add-delete-or-erase-apfs-volumes-dskua9e6a110/22..6/mac/14.0) volume and checkout `agnos-builder` in that specific volume (or move it there). Not setting "Reserve Size" and "Quota Size" will make the volume dynamically allocate the space, which is also recommended.
The recommended way is to create an APFS (Case-sensitive) volume following these [instructions](https://support.apple.com/lv-lv/guide/disk-utility/add-delete-or-erase-apfs-volumes-dskua9e6a110/22..6/mac/14.0) and checkout `agnos-builder` in that specific volume (or move it there). Not setting "Reserve Size" and "Quota Size" will make the volume dynamically allocate the space, which is also recommended.

The same thing can be accomplished with the following command:
```
Expand Down
9 changes: 9 additions & 0 deletions build_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ if ! command -v git &> /dev/null; then
exit 1
fi

if [[ "$(uname)" == 'Darwin' ]]; then
echo "--------------- macOS support ---------------"
echo "Ensure you are in a Case-sensitive APFS volume to build the AGNOS kernel."
echo "https://github.com/commaai/agnos-builder?tab=readme-ov-file#development---macos"
echo "-------------------------------------------------"
echo "Press any key to continue or CTRL+C to abort..."
read -n 1 -s
fi

# Setup kernel build container
if ! docker inspect agnos-kernel &>/dev/null; then
echo "Building agnos-kernel docker image"
Expand Down

0 comments on commit d2505a3

Please sign in to comment.