-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails with Podman Desktop on macOS (selinux feature) #16
Comments
Updates: I've tried the same build using ssh on the podman machine vm to see if there might be any issues with mounting the directory from macos The build fails there with the same error. I've even tried to run the build using sudo to see if there are any issues with permission in rootless mode, but that also failed with the same error. I've also run the build again on an unrelated ubuntu VM (x86 arch, running not on my mac) with podman installed (rootless podman does not work there, so I've built using sudo), there the build works. |
I can reproduce it on my MacBook (arm) |
looks related gardenlinux/gardenlinux#1014 |
The builder unfortunately does not work on build machines with SELinux enabled (which is the default for podman desktop). It might work on build machines running in permissive mode, but this depends on the policy loaded. So your best bet is to build with SELinux disabled. To do this on podman desktop:
|
Oh, that explained why it worked on the ubuntu vm. I was assuming it was an issue inside the build container, not on the host. Thanks. Okay, as a workaround this seems good enough for me. On the long term this might be an issue as 'disable selinux' is not the best recommendation, is there any possibility that this can be fixed so it works with selinux in enforcing mode in the future? |
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 thevmware_dev
target.The build fails in the selinux feature with 'Invalid argument'.
Log excerpt:
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
The text was updated successfully, but these errors were encountered: