Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 159297

Summary: numeric order in rules.d are not respected with USB disk
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: [OLD] Core systemAssignee: udev maintainers <udev-bugs>
Severity: normal CC: base-system
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description SpanKY gentoo-dev 2006-12-28 10:41:43 UTC
i have a USB thumb drive i wanted to create a known symlink for in addition to the other symlinks ... so i added this line to my 10-foo.rules file:

KERNEL=="sd*", ENV{ID_BUS}=="usb", ENV{ID_SERIAL}=="CBM_Flash_Disk", SYMLINK+="disk/foo"

when i insert the drive, i dont get the /dev/disk/foo symlink, just the other /dev/disk/by-id/usb-CBM_Flash_Disk and etc... links

if i move 10-foo.rules to 90-foo.rules, it starts working ... i think the relationship here is with 60-persistent-storage.rules ...

$ qlist -I -v udev

Portage 2.1.2_rc4-r1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, x86_64)
System uname: x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.8
Last Sync: Thu, 28 Dec 2006 10:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]    
dev-lang/python:     2.4.4      
dev-python/pycrypto: 2.0.1-r5   
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.20_alpha2
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:, 2.16-r1, 2.16.1, 2.16.1-r3,,,,,,,,, 2.16.92, 2.16.93, 2.16.94, 2.17,,,,,,,
sys-devel/gcc-config: 1.3.15
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -march=k8 -pipe -Wimplicit-function-declaration"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=k8 -pipe"
FEATURES="assume-digests autoconfig buildsyspkg ccache cvs distlocks metadata-transfer noinfo parallel-fetch sandbox sfperms sign splitdebug"
INSTALL_MASK="/usr/share/applications /usr/kde/*/share/applications /lib/udev/devices"
LDFLAGS="-Wl,-O1 -Wl,-z,relro"
LINGUAS="en en_GB de es cs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="amd64 X a52 aac aalib acl adns aio alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 asf audiofile berkdb bitmap-fonts bzip2 cairo cddb cdparanoia cdr cli cracklib crypt cups curl dba directfb divx4linux dlloader dri dts dvd dvdr dvdread elibc_glibc emboss encode exif fbcon ffmpeg firefox flac flash ftp gd gif glitz glut gphoto2 gpm gtk gtk2 iconv imap imlib input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_void ipv6 isdnlog jbig joystick jpeg jpeg2k kernel_linux libcaca libedit libg++ linguas_cs linguas_de linguas_en linguas_en_GB linguas_es lzo lzw mad maildir matroska mikmod mime mng modplug mp3 mpeg mplayer multislot musepack ncurses nls nptl nptlonly nsplugin nvidia offensive ogg oggvorbis openal opengl pcre pdf perl pic png ppds pppd python qt3 qt4 quicktime readline reflection samba sdl session sndfile spell spl ssl subtitles svg tcl tcltk tcpd tga theora threads tiff tk truetype truetype-fonts type1-fonts udev userland_GNU vcd video_cards_ati video_cards_nv video_cards_nvidia video_cards_r128 video_cards_radeon video_cards_sisusb video_cards_vga vorbis wma wmf xanim xine xinerama xml xml2 xorg xpm xrandr xv xvid xvmc zip zlib"
Comment 1 Matthias Schwarzott gentoo-dev 2007-01-26 20:36:52 UTC
What else can I say than:

We cannot do anything about this problem.

If you would like to use environment-variables set by 60-persistent-storage.rules your rules should be execute afterwards.

If that is a problem, perhaps call documentation-team to write that down somewhere.