Skip to content
Snippets Groups Projects
Commit fe3723be authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

initrd_pack: use crc32 integrity check with xz

The kernel xz implementation can only handle crc32 or none integrity
check but the xz default is crc64 and the kernel will panic.
parent 2de9fc9c
No related branches found
No related tags found
No related merge requests found
...@@ -372,7 +372,8 @@ $(call gentargets,$(STATE_DIR)/initrd_remastered) : $(call archdir,%)$(STATE_DIR ...@@ -372,7 +372,8 @@ $(call gentargets,$(STATE_DIR)/initrd_remastered) : $(call archdir,%)$(STATE_DIR
initrd_pack : $(ARCH_DIR)$(INITRD_TARGET) initrd_pack : $(ARCH_DIR)$(INITRD_TARGET)
$(call gentargets,$(INITRD_TARGET)) : $(call archdir,%)$(STATE_DIR)/initrd_remastered $(call gentargets,$(INITRD_TARGET)) : $(call archdir,%)$(STATE_DIR)/initrd_remastered
cd "$(call archdir,$*)$(INITRD)" && find | cpio -H newc -o | xz $(XZ_LZMA_FLAGS) -z > "$(call archdir,$*)$(INITRD_TARGET)" cd "$(call archdir,$*)$(INITRD)" && find | cpio -H newc -o | xz $(XZ_LZMA_FLAGS) --check=crc32 -z \
> "$(call archdir,$*)$(INITRD_TARGET)"
$(call ensure_unmount,clean_really_all): iso_clean_both rootfs_clean_both rootfs_common_clean initrd_clean_both image_clean $(call ensure_unmount,clean_really_all): iso_clean_both rootfs_clean_both rootfs_common_clean initrd_clean_both image_clean
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment