Save /boot structure as an image - #2380
Open
Johan-Liebert1 wants to merge 4 commits into
Open
Conversation
For UKI booted systems we have a lot of stuff in `/boot` viz, UKI, UKI Addons, UKI dumpfile, various UKI profiles and we may add more things in the future. Currently we mask off `/boot` from the EROFS which leaves us with a very inefficient way of reconstructint the filesystem from splitstreams to get back what was in `/boot` Instead, save a `<verity>.boot` EROFS in `composefs/images/refs` which contains only the `/boot` directory. This is useful for installing UKI addons from other deployments into the current one and also for GC-ing UKI and respective addons which we currently do not Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Make use of the saved `.boot` EROFS to GC everything in the boot directory of the deployment being GC'd Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Test whether UKI assets are being cleaned up from the objects directory during GC Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For UKI booted systems we have a lot of stuff in
/bootviz, UKI, UKIAddons, UKI dumpfile, various UKI profiles and we may add more things in
the future. Currently we mask off
/bootfrom the EROFS which leaves uswith a very inefficient way of reconstructint the filesystem from
splitstreams to get back what was in
/bootInstead, save a
<verity>.bootEROFS incomposefs/images/refswhichcontains only the
/bootdirectory. This is useful for installing UKIaddons from other deployments into the current one and also for GC-ing
UKI and respective addons which we currently do not
Make use of the saved
.bootEROFS to GC everything in the bootdirectory of the deployment being GC'd
Closes: composefs/composefs-rs#373