From 39d809917699f6ad9bf218b32efd43aa15da6677 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 11 Jan 2020 00:39:57 +0100 Subject: Fix xz checksum computation Signed-off-by: David Oberhollenzer --- kernel.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kernel.md b/kernel.md index 653228f..b3ae730 100644 --- a/kernel.md +++ b/kernel.md @@ -325,5 +325,11 @@ filesystems: We can now finally put everything together into an XZ compressed initial ramdisk: - ./gen_init_cpio initrd.files | xz > initrd.xz + ./gen_init_cpio initrd.files | xz --check=crc32 > initrd.xz cp initrd.xz "$SYSROOT/boot" + +The option `--check=crc32` forces the `xz` utility to create CRC-32 checksums +instead of using sha256. This is necessary, because the kernel built in +xz library cannot do sha256, will refuse to unpack the image otherwise and the +system won't boot. + -- cgit v1.2.3