Skip to content

Image building challenges on macOS #48

@weikengchen

Description

@weikengchen

I tried to build the image and take the measurements on my macOS today.

macOS version: Tahoe 26.0.1
Lima version: 2.0.1 (recent)

Here are two errors that I encountered and the solution, but I am glad that I eventually fixed them and got the measurement.

  1. Lima has a fatal error mounts[0].location must be an absolute path, found "."

This seems to be due to

mounts: 
    - location: "." # cwd of `limactl start` command"

I fixed it by replacing the location with the pwd of the root directory of this repository.

  1. "make build" may fail in "/work/finalize" due to "PROFILES" not set

Note that debloat.sh will check "$PROFILES". If this variable is not present, it may fail. This is related to a recent commit @c5eec3efed85f4546b34417ac6794037db99491d

if [[ ! "$PROFILES" == *"devtools"* ]]; then
    debloat_paths+=(
        "/usr/share/bash-completion"
    )
fi

I fixed it by using "make build-dev" because it would supply "--profile=devtools" so at least this variable is not empty. But I think maybe the Makefile should supply something for "make build"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions