Revision: 7211 http://sourceforge.net/p/ipcop/svn/7211 Author: owes Date: 2014-01-11 16:58:17 +0000 (Sat, 11 Jan 2014) Log Message: ----------- Patch mdadm udev rule to get /dev/disk/by-label symlink working.
Modified Paths: -------------- ipcop/trunk/lfs/mdadm Added Paths: ----------- ipcop/trunk/src/patches/mdadm-3.3_udev-blkid.patch Modified: ipcop/trunk/lfs/mdadm =================================================================== --- ipcop/trunk/lfs/mdadm 2014-01-11 13:57:47 UTC (rev 7210) +++ ipcop/trunk/lfs/mdadm 2014-01-11 16:58:17 UTC (rev 7211) @@ -86,6 +86,9 @@ # Waiting a bit more is needed when system is loaded to avoid a timing issue, happen to me on various 05 -bitmap tests cd $(DIR_APP) && sed -i 's/sleep 4/sleep 8/g' tests/* + # use external blkid with udev option to get all /dev/disk/by* symlinks + cd $(DIR_APP) && patch -p1 -i $(DIR_PATCHES)/$(THISAPP)_udev-blkid.patch + cd $(DIR_APP) && sed -i 's|sbin\/sendmail|bin/sendEmail|' Makefile # CXFLAGS="$(CFLAGS)" is required to set the optimization level or -O0 is used and FORTIFY does not apply # Compile mdadm, mdmon and programs needed for the tests Added: ipcop/trunk/src/patches/mdadm-3.3_udev-blkid.patch =================================================================== --- ipcop/trunk/src/patches/mdadm-3.3_udev-blkid.patch (rev 0) +++ ipcop/trunk/src/patches/mdadm-3.3_udev-blkid.patch 2014-01-11 16:58:17 UTC (rev 7211) @@ -0,0 +1,11 @@ +--- mdadm-3.3/udev-md-raid-arrays.rules.orig 2014-01-11 17:11:31.000000000 +0100 ++++ mdadm-3.3/udev-md-raid-arrays.rules 2014-01-11 17:12:38.000000000 +0100 +@@ -26,7 +26,7 @@ + ENV{DEVTYPE}=="partition", ENV{MD_DEVNAME}=="*[^0-9]", SYMLINK+="md/$env{MD_DEVNAME}%n" + ENV{DEVTYPE}=="partition", ENV{MD_DEVNAME}=="*[0-9]", SYMLINK+="md/$env{MD_DEVNAME}p%n" + +-IMPORT{builtin}="blkid" ++IMPORT{program}="/sbin/blkid -o udev -p $tempnode" + OPTIONS+="link_priority=100" + OPTIONS+="watch" + ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn