From 3905382158cc8c5c40f71e1b33f1802341838bca Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 13 Mar 2011 22:17:27 -0700 Subject: chain.c32: Allow both "guid" and "uuid" The GPT specification calls it "guid", but the Unix world generally calls it "uuid". Signed-off-by: H. Peter Anvin --- com32/modules/chain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/com32/modules/chain.c b/com32/modules/chain.c index 70710945..48f53ffd 100644 --- a/com32/modules/chain.c +++ b/com32/modules/chain.c @@ -1387,6 +1387,8 @@ int main(int argc, char *argv[]) || !strncmp(argv[i], "mbr=", 4) || !strncmp(argv[i], "guid:", 5) || !strncmp(argv[i], "guid=", 5) + || !strncmp(argv[i], "uuid:", 5) + || !strncmp(argv[i], "uuid=", 5) || !strncmp(argv[i], "label:", 6) || !strncmp(argv[i], "label=", 6) || !strcmp(argv[i], "boot") @@ -1425,7 +1427,8 @@ int main(int argc, char *argv[]) error("Unable to find requested MBR signature\n"); goto bail; } - } else if (!strncmp(drivename, "guid", 4)) { + } else if (!strncmp(drivename, "guid", 4) || + !strncmp(drivename, "uuid", 4)) { if (str_to_guid(drivename + 5, &gpt_guid)) goto bail; drive = find_by_guid(&gpt_guid, &cur_part); -- cgit v1.2.1