Re: Installing a new Linux build on a Debian distro



On Thu, 15 Nov 2007 20:39:04 -0600
Owen Heisler <owenh000@xxxxxxxxx> wrote:

On Sat, 2007.11.10 18:49, Celejar wrote:
On Thu, 8 Nov 2007 20:50:42 -0600, Owen wrote:
start with /boot/config-2.6.18-4-486 as your config. Be sure to
include the initrd option when compiling the kernel with
make-kpkg.

I'm curious; why do you recommend initrd? I built plenty of kernels
using kernel-package without initrd without a problem; I only began
to use initrd when I began to use s2disk, which encourages it.

When I first started compiling kernels, I built one using the Debian
config as a starting point, compiled, rebooted, and got a kernel
panic. This was because some modules were required to load the root
fs. Using an initrd fixed that. Also, (I think) uswsusp _requires_

Kernel support for the root fs must obviously be available, but IIUC, it
can generally be included in the kernel. Of course, it then can't be
built as a module - I hit this when I tried building my ATA HDD support
as a module without an initrd ...

an initrd. At least, one system I set up recently wouldn't resume
after an s2disk without an initrd. (If there is some way to resume
without using an initrd say please.)

From the uswsusp HOWTO.gz:

(c) The kernel should be configured with CONFIG_BLK_DEV_INITRD=y,
which will allow you to run the resume binary out of an
iniramfs/initrd image. [It is possible to use the suspend tools
without any initramfs/initrd images, but it's dangerous and will not
be documented here.]

I have never tried this.

So I suggest using an initrd for anyone who isn't sure that they don't
need one. Once they figure out how to configure the kernel, then
they can drop the initrd if they so choose.

Thanks,
Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator



Relevant Pages

  • Re: 2.6.15-rt16
    ... > No, but I don't use an initrd, so my failure was first that it couldn't> recognize my harddrives. ... So I compiled in the necessary drivers into my> kernel, and it booted right up to the GDM login. ... Other than a message that it was unable to open the console I got the exact same failure. ... When compiling 3 different kernels with several different configs> constantly for the same machine, it just becomes easier to not use an> initrd. ...
    (Linux-Kernel)
  • Re: 2.6.15-rt16
    ... >> No, but I don't use an initrd, so my failure was first that it couldn't ... So I compiled in the necessary drivers into my>> kernel, and it booted right up to the GDM login. ... Other than a message that it> was unable to open the console I got the exact> same failure. ... When compiling 3 different kernels with several different configs>> constantly for the same machine, it just becomes easier to not use an ...
    (Linux-Kernel)
  • Re: booting from ISO image on HD?
    ... >> through customized initrd files for each one. ... > between the loopback device and the underlying file (the iso image). ... I have to insmod the loop kernel module(e.g. ... how can you boot it from an initrd??? ...
    (comp.os.linux.misc)
  • Re: fsck fails during boot with 2.6.9-34.0.1.EL kernel because root filesystem is already rw mou
    ... I think there was a little fault in building the new initrd. ... The mount-command of the init-script is wrong and makes confusing, e.g.: first the root-filesystem must mount read/write, it accepts. ... It looks like in the early stage of the booting, when the kernel is using the initrd to load the ... I still do not understand why in my new initrd file, with the new kernel, the root filesystem is ...
    (RedHat)
  • Re: Now wont boot (was: Re: Squeeze assembles one RAID array, at boot but not the other
    ... Different kernel version ... Won't boot. ... directories of an initrd bootstrapping image. ... Because your raid did not assemble the ...
    (Debian-User)