mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Garfield <garfield@irving.iisd.sra.com>
To: Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Query about initramfs and modules
Date: Tue, 15 Jan 2002 19:33:17 -0500	[thread overview]
Message-ID: <15428.51789.430278.700907@irving.iisd.sra.com> (raw)
In-Reply-To: <20020116000117.GD29020@kroah.com>
In-Reply-To: <15428.47094.435181.278715@irving.iisd.sra.com> <20020115233437.GC29020@kroah.com> <15428.49056.652466.414438@irving.iisd.sra.com> <20020116000117.GD29020@kroah.com>

Greg KH writes:
 > But how do you always know what is "needed"?  Wouldn't it be nice to
 > just select "compile all SCSI PCI and IEEE1394 and USB drivers as
 > modules" and then have your "real" root partition's controller be
 > automatically found before you try to mount your "real" root partition?

One knows what is needed because one knows or determines what it takes
to access ones real root partition.

 > Say your SCSI PCI controller dies, and you buy a new one.  Plop it in,
 > reboot, and everything works.  No having to build a new initrd, or build
 > in _all possible_ SCSI PCI drivers.

Except that what you have just proposed requires that you "build in
_all possible_ SCSI PCI drivers" as modules in the initramfs.  Little
gain, except that some things won't be retained.

Further, I don't thing I would expect a system with a changed SCSI PCI
controller to boot on a kernel specifically built for the previous
controller.  I don't think I would even want it to boot.  Better I
think to get out a rescue disk of some sort, boot from that,
reconfigure a built kernel for the new hardware (in the new case,
simply reconstructing the initramfs), and reboot from that.



 > Right now you can't have your "real" root partition on a USB drive,
 > without a horrible "let's wait forever" patch to your kernel.
 > 
 > This also solves the "coldplug" problem, where you need to load
 > pci/usb/foobus drivers _after_ init has started.  To do this you need to
 > rely on scanning the busses from userspace and loading the needed
 > drivers.  Why reimplement this scanning logic, as the kernel already did
 > all of this (and usually did a much better job at it) during the boot
 > process before init started.
 > 
 > And this allows lots of horrible "boot over NFS" and other network
 > code/hacks in the kernel to be moved out of kernel space, and into
 > userspace, where it really belongs.

Well, I agree that the new solution does solve some problems.


What I am worried about is not *allowing* user mode code in the
initramfs, but *requiring* it.


--David Garfield

  parent reply	other threads:[~2002-01-16  0:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-15 23:15 David Garfield
2002-01-15 23:34 ` Greg KH
2002-01-15 23:47 ` David Garfield
2002-01-16  0:01   ` Greg KH
2002-01-16 19:29     ` Andreas Ferber
2002-01-16 19:40       ` Greg KH
2002-01-16 19:53         ` Jordan Crouse
2002-01-16  0:33   ` David Garfield [this message]
2002-01-16  1:16     ` Greg KH
2002-01-16  2:09 ` H. Peter Anvin
2002-01-16  3:29 ` Alexander Viro
2002-01-16 19:41   ` Erik Andersen
2002-01-16 19:56     ` H. Peter Anvin
2002-01-16 20:18       ` Erik Andersen
2002-01-16 20:23         ` H. Peter Anvin
2002-01-16 17:53 ` David Garfield
2002-01-16 18:13   ` H. Peter Anvin
2002-01-16 19:04   ` David Garfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15428.51789.430278.700907@irving.iisd.sra.com \
    --to=garfield@irving.iisd.sra.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®