From 2c12e8af85dd2a7c67bcb227d471f512193044d4 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Wed, 9 Feb 2011 00:37:42 +0100 Subject: [PATCH] =?UTF-8?q?[Probes/blkid]=20D=C3=A9codage=20des=20LABEL=3D?= =?UTF-8?q?=20et=20UUID=3D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit darcs-hash:20110208233742-ffbb2-e3f531a42db9d61ed45d6bc27963985f32e48678.gz --- Probes/blkid | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 Probes/blkid diff --git a/Probes/blkid b/Probes/blkid new file mode 100755 index 0000000..4baa435 --- /dev/null +++ b/Probes/blkid @@ -0,0 +1,14 @@ +#!/bin/bash +# Mapping entre LABEL=toto, UUID=t-a-t-a et /dev/sdxx + +if [ -x /sbin/blkid ]; then + echo "group:blkid" + (cat /etc/fstab; cat /etc/fstab.local) | \ + awk '/^[A-Z]+=/{print $1}' | \ + sort | \ + uniq | \ + while read blockid; do + echo -n "$blockid " + /sbin/blkid -t "$blockid" -o device + done +fi