From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Harvell Date: Tue, 20 Jun 2006 20:09:54 +0000 Subject: getting my udev initrd working on 2.6.9 versus 2.6.16 Message-Id: <44985612.4030202@dogpad.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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/initdev/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/initdev/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