[readonly/geninitrd: 447/1068] - use dmsetup from device-mapper pkg not devmap_name from multipath-tools
draenog
draenog at pld-linux.org
Sat Nov 2 19:49:57 CET 2013
commit 6ef1a3530e0f14674a709ca151ec114e42294a7e
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Mon Oct 22 17:25:46 2007 +0000
- use dmsetup from device-mapper pkg not devmap_name from multipath-tools
svn-id: @8838
functions | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/functions b/functions
index 2c347fc..842e49a 100644
--- a/functions
+++ b/functions
@@ -105,6 +105,6 @@ dm_longname() {
local dm_major=$(awk '$2 == "device-mapper" {print $1}' /proc/devices)
local dm_minor=${node#/dev/dm-}
- local dm_name=$(devmap_name $dm_major:$dm_minor)
+ local dm_name=$(dmsetup info -c --noheadings -j $dm_major -m $dm_minor | awk -F: '{print $1}')
echo "/dev/mapper/$dm_name"
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/147754ca159d40ca5eb541074dc043d8cbd92090
More information about the pld-cvs-commit
mailing list