-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
flatpak again #250
base: master
Are you sure you want to change the base?
flatpak again #250
Conversation
9c995ce
to
6adf147
Compare
@tinywrkb take a look at https://ci.spearow.io/teams/main/pipelines/oregano/jobs/build-pkg-flatpak/builds/22 - it's still not happy but I am not sure the |
Try disabling rofiles-fuse by running Flatpak builder with
rofiles-fuse is being used because it's recommended with ostree overlays see here for more details. |
Even that is not enough:
since the whole thing already runs in an unprivileged container |
I believe Flatpak is using user namespaces so should be enabled in the CI container. |
Even with kernel commandline Feel free to inspect it via making changes in a PR to https://github.com/drahnr/oregano/blob/master/.concourse/tasks/flatpak.yml |
Are you sure that user namespaces are enabled? Flatpak set the sandbox with Bubblewrap so the following should work in the container because we don't use namespaces:
On the other hand, we can create a PID user namespace by adding
You should be able to confirm that the issue is with user namespaces by running bwrap with strace and looking for a failed unshare or clone calls with With
You need to confirm that user namespaces is actually enabled in the container's running kernel. This is what I'm seeing kernel 5.11.7.
Check also
|
So it turns out my host kernel does not have This seems to be related: https://bugs.archlinux.org/task/62990 |
I think the easiest way would be to use |
$ bwrap \
> --bind /usr /usr \
> --dev /dev \
> --proc /proc \
> --symlink usr/bin /bin \
> --symlink usr/bin /sbin \
> --symlink usr/lib /lib \
> --symlink usr/lib /lib64 \
> --tmpfs /etc \
> --tmpfs /tmp \
> --tmpfs /var \
> -- cat /proc/self/stat
bwrap: Creating new namespace failed: Operation not permitted with and without |
Bubblewrap is probably still setting a mount namespace and I don't believe there's a way around this.
I don't think it's possible. flatpak-builder is wrapping The easy way to solve this is to use a CI with user namespaces working. The more complex solution is (which I haven't confirmed is working):
|
p.s. A good example of how to build a Flatpak manually is the Firefox packaging. |
No description provided.