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

Bug 182960

Summary: sys-fs/mdadm: Adding udev-rules to create symlinks /dev/disk/by-*/* for RAID-device and filesystem on it
Product: Gentoo Linux Reporter: Matthias Schwarzott <zzam>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 64-md-raid.rules

Description Matthias Schwarzott gentoo-dev 2007-06-23 08:56:03 UTC
Please add the attached udev rules file to mdadm-ebuild. It uses the new --export option so will only work with versions starting ~2.6.2. 
suse calls the file 64-md-raid.rules (and so it is called in udev tarball).

It will generate these symlinks in /dev:

/dev/disk/by-id/md-name-NAME
/dev/disk/by-id/md-uuid-UUID
(if NAME/UUID of raid device are set)

and:
/dev/disk/by-uuid/UUID
/dev/disk/by-label/LABEL
(if filesystem on raid device has UUID/LABEL set).
Comment 1 Matthias Schwarzott gentoo-dev 2007-06-23 08:56:37 UTC
Created attachment 122875 [details]
64-md-raid.rules
Comment 2 SpanKY gentoo-dev 2007-06-23 15:20:38 UTC
shouldnt we get this merged into mdadm mainline ?
http://cgi.cse.unsw.edu.au/~neilb/mdadm
Comment 3 Matthias Schwarzott gentoo-dev 2007-06-27 10:20:59 UTC
+1

udev-tarball contains this file, but I think merging it into mdadm sources could be good.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-10-03 09:17:51 UTC
going into mdadm-2.6.3-r2.