Skip to content

Build fails with Podman Desktop on macOS (selinux feature) #16

@fwilhe

Description

@fwilhe

What happened:

I'm trying to build gl on macOS using Podman Desktop.

I've freshly installed Podman Desktop and have a working setup where I have a default Podman machine and I can run Podman containers from my macOS shell.

I have a clone of the gardenlinux repo with the latest commit on main.

I'm running the build script with either the metal_dev or the vmware_dev target.

The build fails in the selinux feature with 'Invalid argument'.

Log excerpt:

[.build/vmware_dev-arm64-today-95d16344.tar 2023-06-21 08:33:22] exec: /builder/features/_selinux/exec.post
[.build/vmware_dev-arm64-today-95d16344.tar 2023-06-21 08:33:22]   setfiles: Could not set context for /loop/var/log/journal:  Invalid argument
[.build/vmware_dev-arm64-today-95d16344.tar 2023-06-21 08:33:22]   setfiles: Could not set context for /loop/var/log/apt:  Invalid argument
[.build/vmware_dev-arm64-today-95d16344.tar 2023-06-21 08:33:22]   setfiles: Could not set context for /loop/var/log/apt/history.log:  Invalid argument
... (many many similar lines)
[.build/vmware_dev-arm64-today-95d16344.tar 2023-06-21 08:33:28]   setfiles: Could not set context for /loop/etc/.pwd.lock:  Invalid argument
completed in 59 seconds

make: *** [Makefile:55: .build/vmware_dev-arm64-today-95d16344.tar] Error 255

What you expected to happen:

The build should succeed.

How to reproduce it (as minimally and precisely as possible):

Get a fresh install of Podman Desktop on macOS, create a VM with the default image (Fedora CoreOS) and try to run ./build vmware_dev or ./build metal_dev.

Anything else we need to know:

I don't yet understand how to disable individual features with the new builder.
Of course this would not fix the issue, but it would be nice to have the option to build without selinux for the time being.

Environment:

I'm running on a M1 macbook and try to build for arm64 architecture.

output of podman info:

podman_info.txt

output of podman machine info:

podman_machine_info.txt

output of podman machine list:

podman_machine_list.txt

output of the failed build:

gl-build-log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions