Skip to content

Conversation

@dtrudg
Copy link
Member

@dtrudg dtrudg commented Oct 18, 2024

Description of the Pull Request (PR):

Pick #3360

When building from a local image, we need to insert the base environment (default runscripts etc), into the rootfs after extracting it. This is because of an issue with unsquashfs that causes it to fail in the presence of certain symlinks (#3151).

We also want any runscript etc. in the source image to be preservered, and not replaced with defaults.

Modify the base environment insertion to accept a bool controlling whether it overwrites any existing files. For the local image case, where we insert the baseenv after extraction, do not overwrite. In all other cases keep existing behaviour by setting overwrite to true.

This fixes or addresses the following GitHub issues:

Before submitting a PR, make sure you have done the following:

@dtrudg dtrudg self-assigned this Oct 18, 2024
@dtrudg dtrudg marked this pull request as ready for review October 18, 2024 10:43
When building from a local image, we need to insert the base environment
(default runscripts etc), into the rootfs after extracting it. This is
because of an issue with `unsquashfs` that causes it to fail in the presence
of certain symlinks (sylabs#3151).

We also want any runscript etc. in the source image to be preservered,
and not replaced with defaults.

Modify the base environment insertion to accept a bool controlling
whether it overwrites any existing files. For the local image case,
where we insert the baseenv after extraction, do not overwrite. In all
other cases keep existing behaviour by setting overwrite to true.

Fixes sylabs#3353
@dtrudg dtrudg merged commit 8565fc5 into sylabs:release-4.2 Oct 25, 2024
1 check passed
@dtrudg dtrudg deleted the pick-3360 branch October 25, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants