udev in chroot

Rudy Gevaert Rudy.Gevaert at UGent.be
Mon May 21 14:14:03 CEST 2007


Hi again,

There have been some posts/bugs about udev in chroot on several mailing 
lists.  Most relevant one:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=395889

We are heavily using Dell equipment here, and as some of you know the 
9th generation of Dell servers switch the network interfaces in the OS.

Matt Domsch has written a tool that can query the bios for the correct 
naming of the device.  I have made Debian packages for this tool (
http://users.ugent.be/~rgevaert/bios-dev-name/)

The package works(tm):  I install it on a running system and remove the 
rules.d/z25-persistent-net-rules link.  Reboot and eth0 is the correct 
eth0.  eth1 is the correct eth1.

Now the problem:

I'm installing that package in my FAI nfsroot.  It gets set up correctly:

wopr:/srv/fai/nfsroot/etc/udev/rules.d# ls -1
020_permissions.rules
30_bios_dev_name.rules
udev.rules
z20_persistent-input.rules
z20_persistent.rules
z45_persistent-net-generator.rules
z50_run.rules
z55_hotplug.rules
z60_hdparm.rules
z75_cd-aliases-generator.rules

My udev rule:
wopr:/srv/fai/nfsroot/etc/udev/rules.d# cat 30_bios_dev_name.rules
# Rename the interfaces according to the order in the bios.

KERNEL=="eth*", ACTION=="add", PROGRAM="/usr/sbin/bios_dev_name -i %k", 
NAME="%c"


   But when I boot for the installation the interfaces get named the 
wrong way.  As you can see above I have no 
rules.d/z25-persistent-net-rules link in the chroot.

I'm booting with my own 2.6.16.20 kernel.

After installing the machine I still have to remove 
rules.d/z25-persistent-net-rules from the machine I'm installing, 
because of
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=418835

I would appreciate some help to further debug this.

Thanks in advance,
-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert          Rudy.Gevaert at UGent.be          tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep Systemen                    Systems group
Universiteit Gent                 Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie               www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --



More information about the linux-fai mailing list