linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* getting my udev initrd working on 2.6.9 versus 2.6.16
@ 2006-06-20 20:09 Joe Harvell
  0 siblings, 0 replies; only message in thread
From: Joe Harvell @ 2006-06-20 20:09 UTC (permalink / raw)
  To: linux-hotplug

I am trying to boot a 2.6.9 kernel using a root filesystem that is an
LVM volume built on a RAID1 mirror.  The problem is that I was able to
get this working when I boot 2.6.16, but not for 2.6.9.  The linuxrc
files are shown below.

The problem is that when I execute udevstart in the 2.6.9 initrd, /dev
only gets populated with some basic stuff after executing udevstart.  In
my 2.6.16 initrd, after I execute udevtrigger, my scsi low lever driver
and my IDE driver are both loaded automatically (ata_piix and piix). 
Then when I hand load sd_mod and ide-disk, udev populates the /dev
entries for the disks and partitions.

Also, when I start a shell in the 2.6.9 initrd environment, even when I
manually load ata_piix and piix, nothing gets created in /dev for the
disks.  I was able to manually boot by mknod'ing them.

My udev config files are just the default stuff when I installed udev on
Gentoo, except that I uncommented the devmap_name rule for LVM2:

    KERNEL="dm-[0-9]*",    PROGRAM="/sbin/devmap_name %M %m",
NAME="%k", SYMLINK+="%c"


2.6.16 (working) linuxrc:

#!/bin/bash
export PATH=/sbin:/bin
mount -n -t proc proc /proc
mount -n -t sysfs sys /sys
mount -n -t tmpfs -o exec,nosuid,mode\a55 udev /dev
echo "" > /proc/sys/kernel/hotplug
udevd --daemon
udevtrigger
udevsettle
modprobe sd_mod
modprobe ide-disk
modprobe dm-mod
mknod -m 600 /dev/md1 b 9 1
mdadm -A /dev/md1 /dev/sda3 /dev/hda3
lvm vgscan
lvm vgchange -ay paris
mount -o ro /dev/paris/root /mnt
cd /mnt
bin/umount /proc
bin/umount /sys
mount --move /dev dev
sbin/pivot_root . initrd
cd /
exec sbin/init<dev/console>dev/console 2>&1


2.6.9 linuxrc:

#!/bin/bash
export PATH=/sbin:/bin
mount -n -t proc proc /proc
mount -n -t sysfs sys /sys
mount -n -t tmpfs -o exec,nosuid,mode\a55 udev /dev
echo "/sbin/udevsend" > /proc/sys/kernel/hotplug
udevd --daemon
udevstart
udevsettle
modprobe sd_mod
modprobe ide-disk
modprobe dm-mod
mknod -m 600 /dev/md1 b 9 1
mdadm -A /dev/md1 /dev/sda3 /dev/hda3
lvm vgscan
lvm vgchange -ay paris
mount -o ro /dev/paris/root /mnt
cd /mnt
bin/umount /proc
bin/umount /sys
mount --move /dev dev
sbin/pivot_root . initrd
cd /
exec sbin/init<dev/console>dev/console 2>&1


_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-20 20:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-20 20:09 getting my udev initrd working on 2.6.9 versus 2.6.16 Joe Harvell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).