Improve --bwrap to work with r/o filesystems (overlayfs) and --subdir-{modules,software}#5173
Conversation
Using those instead of hardcoded 'software' and 'modules' makes the path inside the bwrap installdir more similar to the external paths, if --subdir-software or --subdir-modules are used.
In that case we go up the directory tree until we find a directory that exists, and use overlayfs to avoid hiding the other directories (that could have dependent software!)
Using EB 5.3.0 + easybuilders/easybuild-framework#5173 This also improves diagnostics a bit, with the name of the tarball at the tail end of the screen output.
|
tested without overlay, works well |
|
for adding a test for the overlay feature, you could add this to |
|
@bartoldeman with the support for it's not really needed because all the needed info is already present, but it will make it easier to use the json file for copying the files to their final destination after the installation. EDIT: implemented in cd0267c. |
|
@bartoldeman i've added an end-to-end test for bwrap with overlay on ubuntu 26.04 (well, they didn't fail because i added a edit: fix merged and |
Two changes to make
--bwrapwork for our situation:--subdir-{modules,software}: this makes the paths more similar under the bwrap installdir if you use those.