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

Mount previously built squashfs layers if needed #500

Closed
wants to merge 1 commit into from

Conversation

hallyn
Copy link
Contributor

@hallyn hallyn commented Sep 11, 2023

When we run a stackerfile a second time, previously built tar layers are assumed to already exist. But if we are using squashfs layers, then those layers are missing on a second run. Make sure to mount them when we find a built layer.

Closes #454

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hallyn
Copy link
Contributor Author

hallyn commented Sep 11, 2023

Fixed my local version of Scott's reproducer anyway.

@hallyn hallyn force-pushed the 2023-09-10/fix-454 branch 3 times, most recently from 582f33c to 82ac87d Compare September 11, 2023 16:58
Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@hallyn hallyn force-pushed the 2023-09-10/fix-454 branch 2 times, most recently from 3794418 to 5ed36df Compare September 11, 2023 19:28
When we run a stackerfile a second time, previously built tar layers
are assumed to already exist.  But if we are using squashfs layers,
then those layers are missing on a second run.  Make sure to mount
them when we find a built layer.

Closes project-stacker#454

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
@rchincha
Copy link
Contributor

Closing since PR #502 is merged.

@rchincha rchincha closed this Sep 11, 2023
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.

Bug: problem re-building from squashfs due to cache change
2 participants