Skip to contentSkip to conversation

udev and yaird

DISCUSSION Moshe Yudkowsky 1 participant 1 message Jan 5, 2006

lore
Share & tools
lore
#0 lore raw

I'm trying to puzzle out a problem with udev and yaird. Please bear with me -- I suspect that this is a yaird problem, but I'm not entirely certain.

I'm using 2.6.14, Debian unstable. (2.6.14-2-k7)

Symptom: the ide-cd module does not load at boot time. No /dev entries are created.

Problem: when I use cpio to look at the boot image, I see that the init script loads ide-{core, generic, disk} and some other modules, but not ide-cd.

Question: doesn't the ide-cd load the way it used to in prior versions of the kernel created with mkinitrd?

I suspect that the problem is that yaird doesn't use the udev script under /usr/share/initramfs-tools/scripts, for example. That udev script would test each ide device and load ide-cd if it found a cdrom.

Even if I modify /etc/modules I still don't get ide-cd in yaird images. Instead, yaird just looks for the bare minimum to mount the root file system:

Quoted 4 lines

yaird: goal: mountdir, / (/etc/yaird/Default.cfg:143)
yaird: action: insmod, /lib/modules/2.6.14-2-k7/kernel/drivers/ide/ide-core.ko {optionList=-- }
yaird: action: insmod, /lib/modules/2.6.14-2-k7/kernel/drivers/ide/ide-generic.ko {optionList=-- }
yaird: action: insmod, /lib/modules/2.6.14-2-k7/kernel/drivers/ide/ide-disk.ko {optionList=-- }

Quoted 8 lines

yaird: hardware: completed ide0/0.0
yaird: action: mkbdev, /dev/hda {sysname=hda }
yaird: action: mkbdev, /dev/hda1 {sysname=hda/hda1 }
yaird: action: insmod, /lib/modules/2.6.14-2-k7/kernel/drivers/md/md-mod.ko {optionList=-- }
yaird: action: insmod, /lib/modules/2.6.14-2-k7/kernel/drivers/md/raid1.ko {optionList=-- }
yaird: action: mdadm, /dev/md1 {components=ARRAY(0x89b78c8) major=9 minor=1 uuidX42a331:676c7ce4:06417154:50dffb65 }
yaird: action: insmod, /lib/modules/2.6.14-2-k7/kernel/fs/reiserfs/reiserfs.ko {optionList=-- }
yaird: action: mount, /mnt {device=/dev/md1 fsType=reiserfs isRoot=1 options=-- }

So, why doesn't yaird -- or something else -- modprobe ide-cd anymore? Is this a distro problem, a yaird problem, or a "udev needs to remind yaird to include something in /etc/yaird/Default.cfg" problem?

Thanks,
Moshe

Signature · 14 lines
  Moshe Yudkowsky
  work: http://www.Disaggregate.com
  book: http://www.PebbleAndAvalanche.com


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel