Re: initrd_size inflation breaks initramfs

From: dann frazier <dannf_at_hp.com>
Date: 2005-11-29 02:57:02
On Mon, 2005-11-28 at 10:44 +0100, Andreas Schwab wrote:
> dann frazier <dannf@hp.com> writes:
> 
> > My guess is that this is a bug in elilo.
> 
> Try this patch:
> 
> --- initrd.c
> +++ initrd.c
> @@ -94,6 +94,9 @@
>  
>  	initrd->start_addr = start_addr;
>  
> +	/* Clear extra memory since we don't pass the exact size.  */
> +	Memset(start_addr + size, 0, (pgcnt << EFI_PAGE_SHIFT) - size);
> +
>  	return ELILO_LOAD_SUCCESS;
>  
>  error:
> 

Thanks Andreas, that works.  Though I wonder if it wouldn't be better to
keep track of the actual initrd size?

-- 
dann frazier <dannf@hp.com>

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Nov 29 02:58:07 2005

This archive was generated by hypermail 2.1.8 : 2005-11-29 02:58:13 EST