From 009ab88e08c21eb9df7af04cad6ed726363edf68 Mon Sep 17 00:00:00 2001 From: Andreas Loibl Date: Thu, 12 May 2011 15:40:56 +0200 Subject: fixed UUIDs in fstab --- backend/modules/partitions | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/backend/modules/partitions b/backend/modules/partitions index b6e1c60..53e4219 100644 --- a/backend/modules/partitions +++ b/backend/modules/partitions @@ -261,4 +261,15 @@ function get_filesystem_type() # qnx4, udf, ufs, hpfs, sysv, swsuspend, ocfs, ocfs2 } +# Synopsis: get_partition_uuid +# +# This function returns the UUID of the filesystem on the supplied device. +# Output example: +# 27abd981-a39e-469d-a29b-0862604f29ee +function get_partition_uuid() +{ + if [ -x /sbin/blkid ]; then + /sbin/blkid -s UUID -o value "$1" + fi +} -- cgit v1.0