chiark / gitweb /
shared/util: add fstab support for partuuid/partlabel
[elogind.git] / src / shared / util.c
index d94bc695c8294dce8fef4ab4bb69c190255c6959..55e344f54dc39ab0c0a6c22b55bedf2c04561d16 100644 (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);
 }