SVN: geninitrd/trunk/functions
wiget
wiget at pld-linux.org
Thu Feb 3 11:41:28 CET 2011
Author: wiget
Date: Thu Feb 3 11:41:28 2011
New Revision: 12107
Modified:
geninitrd/trunk/functions
Log:
Simplify dm_name()
Modified: geninitrd/trunk/functions
==============================================================================
--- geninitrd/trunk/functions (original)
+++ geninitrd/trunk/functions Thu Feb 3 11:41:28 2011
@@ -149,7 +149,7 @@
# @return DM name
dm_name() {
local node="$1"
- dmsetup info -c --noheadings $node | awk -F: '{print $1}'
+ dmsetup info -c --noheadings -o name $node
}
# get subsystem name for DM node
More information about the pld-cvs-commit
mailing list