You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For A64FX and Grace we have accounts on real systems which we use for building. However, those systems do not support fakeroot so we currently have no way to rebuild packages (affecting #1101 and #1102)
One possible solution could be to bind mount /cvmfs from the host, and bind mount an empty host directory on top of it to replace an existing installation. That seems to work:
$ apptainer shell -B /cvmfs/software.eessi.io -B $PWD/emptydir:/cvmfs/software.eessi.io/versions/2023.06/software/linux/aarch64/a64fx/software/buildenv/default-foss-2023a docker://ghcr.io/eessi/build-node:debian11
INFO: Using cached SIF image
Apptainer> ls /cvmfs/software.eessi.io/versions/2023.06/software/linux/aarch64/a64fx/software/buildenv/default-foss-2023a
Apptainer> touch /cvmfs/software.eessi.io/versions/2023.06/software/linux/aarch64/a64fx/software/buildenv/default-foss-2023a/newfile
Apptainer>
You can't bind mount it as a new directory, then you get read-only file system errors, but for rebuilds that's not an issue, as we always want to replace an existing directory.
The only issue is that we do need to have /cvmfs on the host in this case, bind mounting on top of a /cvmfs that was fuse-mounted by the container does not seem to work. I guess all/most of our build cluster do have /cvmfs on the host, so it may not be an issue right now, but we always assumed that we may be building on nodes that don't have this.
But I guess we could definitely add it as a second (and even the preferred) rebuild method, i.e. check if /cvmfs is available on the host and then use this approach. If it's not available, we could fall back to fakeroot (if support for that is available).
It sounds like it is feasible, we build with an overlay and rebuild with a bind mount. Is there any bot where CVMFS is not available natively (Grace maybe)?
It should also make tarballs smaller as I believe right now we are also tarring up the CVMFS cache.
Just noting that the reason we're relying on fakeroot is to dance around the problems in #556
I'm slowly getting annoyed enough to try and come up with a solution for this once and for all, and I'm still hoping there's a way without having to rely on an EESSI mount provided by the host (since that comes with downsides as well).
Activity
bedroge commentedon May 28, 2025
One possible solution could be to bind mount
/cvmfsfrom the host, and bind mount an empty host directory on top of it to replace an existing installation. That seems to work:You can't bind mount it as a new directory, then you get
read-only file systemerrors, but for rebuilds that's not an issue, as we always want to replace an existing directory.The only issue is that we do need to have
/cvmfson the host in this case, bind mounting on top of a/cvmfsthat was fuse-mounted by the container does not seem to work. I guess all/most of our build cluster do have/cvmfson the host, so it may not be an issue right now, but we always assumed that we may be building on nodes that don't have this.bedroge commentedon May 28, 2025
But I guess we could definitely add it as a second (and even the preferred) rebuild method, i.e. check if
/cvmfsis available on the host and then use this approach. If it's not available, we could fall back to fakeroot (if support for that is available).boegel commentedon May 29, 2025
Do we know why
fakerootis not supported on Deucalion & JURECA? Is that deliberate?Anyway, the approach where we leverage
/cvmfsfrom the host if it's available seems reasonable to me.ocaisa commentedon May 29, 2025
It sounds like it is feasible, we build with an overlay and rebuild with a bind mount. Is there any bot where CVMFS is not available natively (Grace maybe)?
It should also make tarballs smaller as I believe right now we are also tarring up the CVMFS cache.
boegel commentedon Jun 12, 2025
Just noting that the reason we're relying on
fakerootis to dance around the problems in #556I'm slowly getting annoyed enough to try and come up with a solution for this once and for all, and I'm still hoping there's a way without having to rely on an EESSI mount provided by the host (since that comes with downsides as well).
boegel commentedon Jun 12, 2025
Latest version of bubblewrap (
bwrap) has introduced support for creating writable overlays, that looks promising...Step 0:
bwrapfrom source in Debian 11 build container filesystem-layer#220boegel commentedon Jul 1, 2025
unionfsas replacement forfuse-overlayfsto create writable overlay looks more promising, see:eessi_container.shfor usingunionfsoverlay tool software-layer-scripts#9unionfsoverlay tool (+ debian12 build container that includes it) by default software-layer-scripts#26ocaisa commentedon Jun 9, 2026
This is working for a long time