summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-08-11 13:32:29 -0400
committerDave Reisner <dreisner@archlinux.org>2012-08-21 11:48:26 -0400
commit84cc2abf3472b6dddd54b046b24f559ec8807ee4 (patch)
tree1b68ee79c60c7b3e75c70f088a50f98b0d26abd0
parent383182b5c435dca06a3f4ba32c6d1be2d1e35881 (diff)
shared/util: add fstab support for partuuid/partlabel
udev has supported this since 172, so it should be a safe (and welcome) addition for users of GPT partitioned disks.
-rw-r--r--src/shared/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index d94bc695c8..55e344f54d 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -4159,6 +4159,12 @@ char *fstab_node_to_udev_node(const char *p) {
if (startswith(p, "UUID="))
return tag_to_udev_node(p+5, "uuid");
+ if (startswith(p, "PARTUUID="))
+ return tag_to_udev_node(p+9, "partuuid");
+
+ if (startswith(p, "PARTLABEL="))
+ return tag_to_udev_node(p+10, "partlabel");
+
return strdup(p);
}