]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions: get_maj_min() major and minor was swapped
authorHarald Hoyer <harald@redhat.com>
Mon, 23 Jan 2012 12:50:05 +0000 (13:50 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 23 Jan 2012 12:50:05 +0000 (13:50 +0100)
dracut-functions

index 3852478b18780e7225c9786abeb5c43153ec6fa6..e04b16de4f8781bfc5cd82acd536a20d8300be19 100755 (executable)
@@ -180,7 +180,7 @@ get_fs_uuid() (
 
 get_maj_min() {
     local _dev
-    _dev=$(stat -L -c '$((0x%T)):$((0x%t))' "$1" 2>/dev/null)
+    _dev=$(stat -L -c '$((0x%t)):$((0x%T))' "$1" 2>/dev/null)
     _dev=$(eval "echo $_dev")
     echo $_dev
 }