]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
- use xfs_admin to get label of xfs filesystem
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 6 Feb 2007 16:26:31 +0000 (16:26 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 6 Feb 2007 16:26:31 +0000 (16:26 +0000)
svn-id: @8224

geninitrd

index 7cc0cc1aac728b5d2613c1b35dc3b6565b309988..bf58ddc61c310faf5678930dfc5eb3bca1cb1071 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -227,8 +227,7 @@ get_uuid_ext2 () {
 }
 
 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 () {
This page took 0.034768 seconds and 4 git commands to generate.