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 permittedwith 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.