Skip to contentSkip to conversation

Print real error when initramfs gunzip failed

PATCH New Andi Kleen 1 participant 1 message Oct 29, 2004 VFS

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 Print real error when initramfs gunzip failed

Print the real error when initramfs gunzip failed. gunzip already sets up message correctly.

init/initramfs.c +1 -2
Index: linux/init/initramfs.c
===================================================================
@@ -445,8 +445,7 @@
 		bytes_out = 0;
 		crc = (ulg)0xffffffffL; /* shift register contents */
 		makecrc();
-		if (gunzip())
-			message = "ungzip failed";
+		gunzip();
 		if (state != Reset)
 			error("junk in gzipped archive");
 		this_header = saved_offset + inptr;