public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Is anyone using the load_ramdisk= option in the kernel still?
@ 2004-10-26  3:48 H. Peter Anvin
  2004-10-26 13:19 ` Jesper Juhl
  2004-10-26 14:03 ` Alessandro Amici
  0 siblings, 2 replies; 5+ messages in thread
From: H. Peter Anvin @ 2004-10-26  3:48 UTC (permalink / raw)
  To: linux-kernel

Hi all,

I've come to the conclusion that in order to stay backwards
compatible while moving root-mounting stuff to userspace, in the
initial patch everything in prepare_namespace() and south needs to be
fully supported in userspace.  This looks perfectly doable, but is a
fair bit of work.

The one piece of ugliness I've encountered has to do with the
load_ramdisk= option; this causes a ramdisk to be loaded from an
external device, usually a floppy.  The ugliness has to do with the
fact that it requires the kernel itself to deduce the size of the
ramdisk, which is filesystem-specific.  Although this code is
currently run for initrds as well, it doesn't need to, since the
kernel knows the size of an initrd.

This code isn't complex by any means, but it's ugly and complex, and
I'm trying to make something a bit cleaner than just copying the
existing in-kernel code to userspace.

So, in short:

a) Does anyone use the load_ramdisk= option anymore, or is it
legitimate to drop?

b) If it is necessary to retain, does anyone care if this option would
only support gzip format in the future, i.e. NOT support uncompressed
filesystem images?  Since a gzip stream is self-terminating, this
takes care of the problem of finding the end, but adds a sizable chunk
of code to the kinit binary.

	-hpa


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Is anyone using the load_ramdisk= option in the kernel still?
  2004-10-26  3:48 Is anyone using the load_ramdisk= option in the kernel still? H. Peter Anvin
@ 2004-10-26 13:19 ` Jesper Juhl
  2004-10-26 14:03 ` Alessandro Amici
  1 sibling, 0 replies; 5+ messages in thread
From: Jesper Juhl @ 2004-10-26 13:19 UTC (permalink / raw)
  To: hpa; +Cc: linux-kernel

On Tue, 26 Oct 2004 hpa@zytor.com wrote:

> Date: Tue, 26 Oct 2004 03:48:40 +0000 (UTC)
> From: hpa@zytor.com
> To: linux-kernel@vger.kernel.org
> Subject: Is anyone using the load_ramdisk= option in the kernel still?
> 
> Hi all,
> 
> I've come to the conclusion that in order to stay backwards
> compatible while moving root-mounting stuff to userspace, in the
> initial patch everything in prepare_namespace() and south needs to be
> fully supported in userspace.  This looks perfectly doable, but is a
> fair bit of work.
> 
> The one piece of ugliness I've encountered has to do with the
> load_ramdisk= option; this causes a ramdisk to be loaded from an
> external device, usually a floppy.  The ugliness has to do with the
> fact that it requires the kernel itself to deduce the size of the
> ramdisk, which is filesystem-specific.  Although this code is
> currently run for initrds as well, it doesn't need to, since the
> kernel knows the size of an initrd.
> 
> This code isn't complex by any means, but it's ugly and complex, and
> I'm trying to make something a bit cleaner than just copying the
> existing in-kernel code to userspace.
> 
> So, in short:
> 
> a) Does anyone use the load_ramdisk= option anymore, or is it
> legitimate to drop?
> 
I know Slackware Linux uses load_ramdisk= when you use floppies to start 
the install in the situations where booting from CD for some reason 
doesn't work. Slackware uses one boot disk and then 2 root disks in this 
case.


--
Jesper Juhl


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Is anyone using the load_ramdisk= option in the kernel still?
  2004-10-26  3:48 Is anyone using the load_ramdisk= option in the kernel still? H. Peter Anvin
  2004-10-26 13:19 ` Jesper Juhl
@ 2004-10-26 14:03 ` Alessandro Amici
  2004-10-26 14:09   ` Matthew Garrett
  1 sibling, 1 reply; 5+ messages in thread
From: Alessandro Amici @ 2004-10-26 14:03 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: linux-kernel


hpa,

On Tuesday 26 October 2004 05:48, H. Peter Anvin wrote:
> So, in short:
>
> a) Does anyone use the load_ramdisk= option anymore, or is it
> legitimate to drop?

I'm pretty sure it is used by the Debian installer when bootstrapping from a 
floppy, but...

> b) If it is necessary to retain, does anyone care if this option would
> only support gzip format in the future, i.e. NOT support uncompressed
> filesystem images?  Since a gzip stream is self-terminating, this
> takes care of the problem of finding the end, but adds a sizable chunk
> of code to the kinit binary.

... the image is read from a raw device (/dev/fd0) and it is gzipped.

Booting the installer is probably the only large scale use case for the 
load_ramdisk parameter.

Cheers,
Alessandro

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Is anyone using the load_ramdisk= option in the kernel still?
  2004-10-26 14:03 ` Alessandro Amici
@ 2004-10-26 14:09   ` Matthew Garrett
  2004-10-26 14:41     ` Alessandro Amici
  0 siblings, 1 reply; 5+ messages in thread
From: Matthew Garrett @ 2004-10-26 14:09 UTC (permalink / raw)
  To: linux-kernel

Alessandro Amici <lists@b-open-solutions.it> wrote:
> On Tuesday 26 October 2004 05:48, H. Peter Anvin wrote:
>> a) Does anyone use the load_ramdisk= option anymore, or is it
>> legitimate to drop?
> 
> I'm pretty sure it is used by the Debian installer when bootstrapping from a 
> floppy, but...

I believe that this is no longer the case with the new installer.

-- 
Matthew Garrett | mjg59-chiark.mail.linux-rutgers.kernel@srcf.ucam.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Is anyone using the load_ramdisk= option in the kernel still?
  2004-10-26 14:09   ` Matthew Garrett
@ 2004-10-26 14:41     ` Alessandro Amici
  0 siblings, 0 replies; 5+ messages in thread
From: Alessandro Amici @ 2004-10-26 14:41 UTC (permalink / raw)
  To: Matthew Garrett; +Cc: linux-kernel


Matthew,

On Tuesday 26 October 2004 16:09, Matthew Garrett wrote:
> Alessandro Amici <lists@b-open-solutions.it> wrote:
> > On Tuesday 26 October 2004 05:48, H. Peter Anvin wrote:
> >> a) Does anyone use the load_ramdisk= option anymore, or is it
> >> legitimate to drop?
> >
> > I'm pretty sure it is used by the Debian installer when bootstrapping
> > from a floppy, but...
>
> I believe that this is no longer the case with the new installer.

If you have the root filesystem on a floppy you still need load_ramdisk 
(checked a few days ago ;)

cheers,
alessandro

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-10-26 14:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-26  3:48 Is anyone using the load_ramdisk= option in the kernel still? H. Peter Anvin
2004-10-26 13:19 ` Jesper Juhl
2004-10-26 14:03 ` Alessandro Amici
2004-10-26 14:09   ` Matthew Garrett
2004-10-26 14:41     ` Alessandro Amici

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox