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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user