summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/parseopt.h
diff options
context:
space:
mode:
authorMichael Brown2024-03-06 09:55:55 +0100
committerMichael Brown2024-03-06 17:11:29 +0100
commitcea22d76e4cfdbd2d5a3a29bd541346710760457 (patch)
tree989f3ba4e8c9a604ecf060ce5aa5ce53dd526cca /src/include/ipxe/parseopt.h
parent[efi] Add efi_path_guid() utility function (diff)
downloadipxe-cea22d76e4cfdbd2d5a3a29bd541346710760457.tar.gz
ipxe-cea22d76e4cfdbd2d5a3a29bd541346710760457.tar.xz
ipxe-cea22d76e4cfdbd2d5a3a29bd541346710760457.zip
[block] Allow SAN boot device to be identified by UUID
Add a "--uuid" option which may be used to specify a boot device UUID, to be matched against the GPT partition GUID. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/parseopt.h')
-rw-r--r--src/include/ipxe/parseopt.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/ipxe/parseopt.h b/src/include/ipxe/parseopt.h
index ebd18804..61010f22 100644
--- a/src/include/ipxe/parseopt.h
+++ b/src/include/ipxe/parseopt.h
@@ -126,10 +126,18 @@ struct named_setting {
struct setting setting;
};
+/** A UUID command-line option */
+struct uuid_option {
+ /** UUID */
+ union uuid *value;
+ /** Storage buffer */
+ union uuid buf;
+};
+
extern int parse_string ( char *text, char **value );
extern int parse_integer ( char *text, unsigned int *value );
extern int parse_timeout ( char *text, unsigned long *value );
-extern int parse_uuid ( char *text, union uuid *value );
+extern int parse_uuid ( char *text, struct uuid_option *uuid );
extern int parse_netdev ( char *text, struct net_device **netdev );
extern int
parse_netdev_configurator ( char *text,