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.
This commit is contained in:
Dave Reisner
2012-08-21 11:48:26 -04:00
parent 383182b5c4
commit 84cc2abf34
+6
View File
@@ -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);
}