SVN: geninitrd/trunk/geninitrd

glen glen at pld-linux.org
Tue Feb 6 17:26:32 CET 2007


Author: glen
Date: Tue Feb  6 17:26:31 2007
New Revision: 8224

Modified:
   geninitrd/trunk/geninitrd
Log:
- use xfs_admin to get label of xfs filesystem

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd	(original)
+++ geninitrd/trunk/geninitrd	Tue Feb  6 17:26:31 2007
@@ -227,8 +227,7 @@
 }
 
 get_label_xfs () {
-	/usr/sbin/xfs_db -x -p xfs_admin -c label -r "$1"|awk -F= '{sub("^\"","", $2); sub("\"$", "", $2); print $2}'
-
+	/usr/sbin/xfs_admin -l "$1"  2>/dev/null | awk -F'"' '/label =/{print $2}'
 }
 
 get_uuid_xfs () {


More information about the pld-cvs-commit mailing list