From 84cc2abf3472b6dddd54b046b24f559ec8807ee4 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 11 Aug 2012 13:32:29 -0400 Subject: 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. --- src/shared/util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/shared/util.c') 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); } -- cgit v1.2.3-54-g00ecf