aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2020-01-11 00:39:57 +0100
committerDavid Oberhollenzer <goliath@infraroot.at>2020-01-11 00:39:57 +0100
commit39d809917699f6ad9bf218b32efd43aa15da6677 (patch)
treec3f48d5e82ce06298f704d9b8696e6155d801db6
parentf502e6d285b9f69b75e8fff9fdfc8633e7a7a01b (diff)
Fix xz checksum computation
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
-rw-r--r--kernel.md8
1 files changed, 7 insertions, 1 deletions
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.
+