aboutsummaryrefslogtreecommitdiff
path: root/kernel.md
diff options
context:
space:
mode:
Diffstat (limited to 'kernel.md')
-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.
+