diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2020-01-11 00:39:57 +0100 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2020-01-11 00:39:57 +0100 |
commit | 39d809917699f6ad9bf218b32efd43aa15da6677 (patch) | |
tree | c3f48d5e82ce06298f704d9b8696e6155d801db6 | |
parent | f502e6d285b9f69b75e8fff9fdfc8633e7a7a01b (diff) |
Fix xz checksum computation
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
-rw-r--r-- | kernel.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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. + |