Commit Graph

5 Commits

Author SHA1 Message Date
James Le Cuirot
10498c29fb
build_library: Create extraction script temp files in $TMPDIR or /tmp
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-05-08 07:59:54 +01:00
James Le Cuirot
ec904175e6
build_library: Fix directory handling in extraction script
I thought cpio was always creating the output directory automatically,
but it was silently failing. It would only extract the next rootfs when
run a subsequent time.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-05-08 07:59:52 +01:00
James Le Cuirot
14398067d5
build_library: Change extraction script to xz and rewrite to be simpler
This version writes fewer temporary files and tries cpio multiple times
for concatenated archives again.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2025-04-22 13:14:02 +01:00
Adrian Vladu
0a8267f69b
cpio: do not fail on ghost rootfs
On Linux >= 6.10, the first rootfs is an extra ghost rootfs of 336K,
that has a corrupted CPIO.

To overcome this issue, do not fail on `cpio --extract`.
2025-03-27 16:14:17 +00:00
Krzesimir Nowak
1c1c0099c7 build_library: Generate content files for initrd too 2023-02-01 14:43:24 +01:00