summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-05-12 15:40:56 +0200
committerlinuxtag <linuxtag@KanotixBox.(none)>2011-05-12 15:41:48 +0200
commit009ab88e08c21eb9df7af04cad6ed726363edf68 (patch)
treec4a3bdb1531368e63dd81335df18031fb6b5f119 /backend
parent11012eb79beb844004438575f24a14d7eb7a56eb (diff)
downloadacritoxinstaller-009ab88e08c21eb9df7af04cad6ed726363edf68.zip
acritoxinstaller-009ab88e08c21eb9df7af04cad6ed726363edf68.tar.gz
fixed UUIDs in fstab
Diffstat (limited to 'backend')
-rw-r--r--backend/modules/partitions11
1 files changed, 11 insertions, 0 deletions
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 <device>
+#
+# 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
+}