initrd/bin/unpack_initramfs.sh: add xz unpacking support.#1860
Merged
tlaurion merged 2 commits intolinuxboot:masterfrom Nov 22, 2024
Merged
initrd/bin/unpack_initramfs.sh: add xz unpacking support.#1860tlaurion merged 2 commits intolinuxboot:masterfrom
tlaurion merged 2 commits intolinuxboot:masterfrom
Conversation
…h tabs Signed-off-by: Thierry Laurion <insurgo@riseup.net>
…: bzip2, lzma, lzo and lz4) xz: tested working with tails test build and 6.8.1's initrd latest ubuntu 24.10: switched back to zstd, works as expected (tested) Magic numbers referred at: - https://github.com/torvalds/linux/blob/28eb75e178d389d325f1666e422bc13bbbb9804c/scripts/extract-vmlinux#L52C1-L58C43 - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/lib/decompress.c#n51 Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This was referenced Nov 22, 2024
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.
Closes #1644 : was preventing to setup TPM DUK key because initrd couldn't be unpacked and repacked on the fly to be passed at kexec call to contain unsealed DUK key for final OS to pick up and use to unlock LUKS on boot.
95c6eb5:
Ubuntu 24.10 switched from lz4 to zstd which was already supported, so does not add lz4 but still closes #1644 :)
xz unpacking
Before:

After this PR:

Which permitted to extract exfat.ko size, which was needed for #1810:
