initrd problem



I'm working on a project that requires preseeding the Debian installer. In
my build process, I mount the ISO image over loopback, and then copy
everything to scratch space on a hard drive. I then extract the cpio initrd
for the 2.6 kernel to another directory, copy in my initrd, and then put
the initrd back on the server:

pushd $TMPINITRD
gzip -d -c $TMPISO/install/2.6/initrd.gz|cpio -i
cp -R $SVNROOT/debian-install-iso/initrd-overlay/* $TMPINITRD
find .|cpio -ocB|gzip -c > $INITRD26
popd

When I boot the CD, it finds the initrd, but then promply kernel panics,
saying that it is unable to mount root. Is this the accepted way to
generate initrds without mkinitrd? I'd rather not have a system running the
same kernel version as the project is going to be.

--
-- Skylar Thompson (skylar@xxxxxxxxxxxxxx)
-- http://www.cs.earlham.edu/~skylar/
.



Relevant Pages

  • 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: [Swsusp-devel] [PATCH 2.6]: suspend to disk only available if non-modular IDE
    ... >> or some other idea how a generic kernel with modules in the initrd ... provided that the initrd doesn't mount anything. ... if you manage to suspend to it!). ...
    (Linux-Kernel)
  • trying to run kernel-smp.2.6.12-1.1381_FC3smp
    ... i recently installed Linux for the first time. ... Ok, booting the kernel. ... mount: error 6 mounting ext3 ... will a new initrd fix this? ...
    (Fedora)
  • Initrd trouble
    ... Freeing initrd memory: 2213k freed ... mount: wrong fs type, bad option, badsuperblock on tmpfs, ... special device /dev2/root2 does not exist ... initrd image), and using local loop device to mount the image: ...
    (Debian-User)
  • Re: Beige PowerMac G3/266 trouble
    ... that you still have to mount /dev/ram as root fs to make use of the ... initrd is mounted read-write as root ... you have to boot the kernel and load initrd. ... fs mounted under some other mount point, ...
    (comp.os.linux.powerpc)