Skip to content
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

[Backport v2.2] Fixes squashfs images creation (#2230) #2231

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

davidcassany
Copy link
Contributor

Backport bsc#1233289 fix to v2.2.x series

(cherry picked from commit 527c12d)

* Fixes squashfs images creation (bsc#1233289)

If upgrading from a container including the root of the host
mounted in /host the upgrade process does not exclude the /host
path and other stateful paths such as /run.

This commit sets the default excludes used in rsync calls
to also apply for mksquashfs.

Signed-off-by: David Cassany <[email protected]>

* Define static method for default exclude relative paths

This commit defines static methods for excluded paths in
sync operations. One method for relative paths and
another one with the same result rooted to a given path.
It also uses wildcards to only exclude certain directories
content while keeping the directory itself.

Signed-off-by: David Cassany <[email protected]>

* Add some additional unit tests for rsync wrappers

Signed-off-by: David Cassany <[email protected]>

---------

Signed-off-by: David Cassany <[email protected]>
(cherry picked from commit 527c12d)
@davidcassany davidcassany added the kind/bug Something isn't working label Nov 13, 2024
@davidcassany davidcassany requested a review from a team as a code owner November 13, 2024 10:07
@davidcassany davidcassany changed the title [Backport] Fixes squashfs images creation (#2230) [Backport v2.2] Fixes squashfs images creation (#2230) Nov 13, 2024
@davidcassany davidcassany merged commit 1fbc11e into rancher:v2.2.x Nov 13, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants