Jonathon Hall 1bf8331ffb
Blob jail: Add zstd-decompress, decompress more complex archives
Debian 12's initrd by default now consists of an uncompressed cpio
archive containing microcode, followed by a zstd-compressed cpio
archive.  inject_firmware.sh only supported gzip-compressed cpio, so it
could not extract /init from this archive.

Add zstd-decompress to decompress zstd streams (uncompressed size is
about 180 KB).

Add unpack_initramfs.sh which is able to decompress uncompressed, gzip,
or zstd archives, with multiple segments, much like the Linux kernel
itself does.

Use unpack_initramfs.sh to extract /init for blob jail.

Don't compress the new archive segment containing firmware and the
updated /init.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
2023-06-21 13:26:50 -04:00
..
2022-08-25 20:55:39 +03:00
2023-06-21 13:26:49 -04:00
2022-11-11 00:59:12 +02:00
2018-02-05 11:30:39 -05:00
2023-06-21 13:26:46 -04:00
2022-08-25 20:55:39 +03:00
2020-01-16 09:30:48 -08:00
2022-08-25 20:55:39 +03:00
2023-03-10 17:07:00 -05:00
2022-08-25 20:55:39 +03:00
2022-08-25 20:55:39 +03:00
2023-06-07 01:10:13 +03:00
2022-08-25 20:55:39 +03:00
2022-04-01 09:47:39 -04:00