[Fai-commit] r6284 - trunk/lib

Thomas Lange lange at alioth.debian.org
Fri Feb 11 09:52:09 UTC 2011


Author: lange
Date: 2011-02-11 09:52:09 +0000 (Fri, 11 Feb 2011)
New Revision: 6284

Modified:
   trunk/lib/task_sysinfo
Log:
print disk devices and their mapping to device names


Modified: trunk/lib/task_sysinfo
===================================================================
--- trunk/lib/task_sysinfo	2011-02-10 22:31:58 UTC (rev 6283)
+++ trunk/lib/task_sysinfo	2011-02-11 09:52:09 UTC (rev 6284)
@@ -41,6 +41,9 @@
 /usr/share/mdadm/mkconf > /etc/mdadm/mdadm.conf 
 /etc/init.d/mdadm-raid start
 
+# pretty print disks by id and device names
+find /dev/disk/by-id ! -type d -printf "%-40f\t->  %l\n" | grep -v part | sort -k3
+echo ""
 cat /proc/partitions
 
 [ -x "$(which blkid)" ] && blkid




More information about the Fai-commit mailing list