Skip to contentSkip to conversation

getting my udev initrd working on 2.6.9 versus 2.6.16

DISCUSSION Joe Harvell 1 participant 1 message Jun 20, 2006

lore
Share & tools
lore
#0 lore raw

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,mode55 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,mode55 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel