Image Replicator: Multiple updates#103
Open
ts-kris wants to merge 6 commits into
Open
Conversation
Fixes #91 More obviously errors in the logs if a target media for a disk image to be written to is not present in the system. Signed-off-by: Kris Bahnsen <kris@embeddedTS.com>
Needed for extended attribute support Signed-off-by: Kris Bahnsen <kris@embeddedTS.com>
Fixes #102 This creates a simple shell function that can be called for both extraction and creation to handle extended attrs, selinux, numeric owner, and sparse files. The only thing not handled here is that extraction needs -h, and creation needs to not have -h in the argument list to tar to prevent issues. Signed-off-by: Kris Bahnsen <kris@embeddedTS.com>
Makes stream decompression easier to handle Signed-off-by: Kris Bahnsen <kris@embeddedTS.com>
Now can rely on bsdcat and tar to handle the stream decompression and much more robustly compared to just relying on the file extension to be correct. Signed-off-by: Kris Bahnsen <kris@embeddedTS.com>
Signed-off-by: Kris Bahnsen <kris@embeddedTS.com>
993c9bd to
7e5bbaa
Compare
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.
Fixes #91
Fixes #102
tarto Image Replicator configurations. This allows for handling extended attributes, sparse files, etc., that can occur from tarballs generated from newer distro-seed configurations to be able to write all of them out. In order to support IR: Use GNU tar and preserve all metadata #102, additional options for ACL, SELinux, andattrare now required.bsdcatto Image Replicator configurations. With the move to GNUtar,tarcan now automatically figure out the compression method and stream decompress making this process no longer reliant on theget_stream_decompressshell function that is currently used to parse a file's extension and return the correct compression.bsdcatfills a similar gap with arbitrary stream decompression at a slight performance penalty for smaller filesizes.tarextract and create so these are located in a single point inblast_funcs.shddfor the disk image write pipeline. Instead, just redirect the output ofteeto the FIFO and the output file. Letting the kernel handle block sizes and buffers automatically tends to have performance improvements across the board.Tested against:
Tests:
taroutput:With ACL, SELinux, and
attrinstalled to the environment as well, no tar errors relating to these are created.