Re: [PATCH] free initrds boot option

2006-12-07 Thread Michael Neuling
> >Is there a kexec-tools patch too? How does second kernel know about > >the location of the first kernel's initrd to be reused? > > > > > kexec-tools has to be modified to pass the first kernel initrd. On > powerpc, initrd locations are exported using device-tree. At present, > kexec-tool ign

Re: [PATCH] free initrds boot option

2006-12-06 Thread Randy Dunlap
On Thu, 07 Dec 2006 14:42:57 +1100 Michael Neuling wrote: > Index: linux-2.6-ozlabs/init/initramfs.c > === > --- linux-2.6-ozlabs.orig/init/initramfs.c > +++ linux-2.6-ozlabs/init/initramfs.c > @@ -487,6 +487,17 @@ static char * __ini

Re: [PATCH] free initrds boot option

2006-12-06 Thread Randy Dunlap
On Thu, 07 Dec 2006 14:42:57 +1100 Michael Neuling wrote: > Add retain_initrd option to control freeing of initrd memory after > extraction. By default, free memory as previously. > > Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> > --- > Updated based on comments from akpm. > Added docume

Re: [PATCH] free initrds boot option

2006-12-06 Thread Haren Myneni
Michael Neuling wrote: Add free_initrd= option to control freeing of initrd memory after extraction. By default, free memory as previously. Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> --- Useful for kexec when you want to reuse the same initrd. Testing on POWERPC with CPIOs This

Re: [PATCH] free initrds boot option

2006-12-06 Thread Michael Neuling
> I would have to agree with this; it also seems a bit odd to me to have > this at all (kexec provides a new kernel image, surely it also > provides a new initrd image???) The first boot will need to hold a copy of the in memory fs for the second boot. This image can be large (much larger than th

Re: [PATCH] free initrds boot option

2006-12-06 Thread H. Peter Anvin
Andrew Morton wrote: I'd have thought that an option `retain_initrd' would make more sense. Please always update Documentation/kernel-parameters.txt when adding boot options. I would have to agree with this; it also seems a bit odd to me to have this at all (kexec provides a new kernel imag

Re: [PATCH] free initrds boot option

2006-12-06 Thread Andrew Morton
On Thu, 07 Dec 2006 11:18:43 +1100 Michael Neuling <[EMAIL PROTECTED]> wrote: > Add free_initrd= option to control freeing of initrd memory after > extraction. By default, free memory as previously. > > Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> > --- > Useful for kexec when you want to

Re: [PATCH] free initrds boot option

2006-12-06 Thread Randy Dunlap
On Thu, 07 Dec 2006 11:18:43 +1100 Michael Neuling wrote: > Add free_initrd= option to control freeing of initrd memory after > extraction. By default, free memory as previously. Please add doc. for this in Documentation/kernel-parameters.txt. > Signed-off-by: Michael Neuling <[EMAIL PROTECTED]