summaryrefslogtreecommitdiffstats
path: root/src/hci/commands/sanboot_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hci/commands/sanboot_cmd.c')
-rw-r--r--src/hci/commands/sanboot_cmd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/hci/commands/sanboot_cmd.c b/src/hci/commands/sanboot_cmd.c
index add0756d..6ab9e884 100644
--- a/src/hci/commands/sanboot_cmd.c
+++ b/src/hci/commands/sanboot_cmd.c
@@ -51,6 +51,8 @@ struct sanboot_options {
char *filename;
/** Required extra filename */
char *extra;
+ /** Volume label */
+ char *label;
/** UUID */
struct uuid_option uuid;
};
@@ -58,7 +60,7 @@ struct sanboot_options {
/** "sanboot" option list */
static union {
/* "sanboot" takes all options */
- struct option_descriptor sanboot[6];
+ struct option_descriptor sanboot[7];
/* "sanhook" takes only --drive and --no-describe */
struct option_descriptor sanhook[2];
/* "sanunhook" takes only --drive */
@@ -75,6 +77,8 @@ static union {
struct sanboot_options, filename, parse_string ),
OPTION_DESC ( "extra", 'e', required_argument,
struct sanboot_options, extra, parse_string ),
+ OPTION_DESC ( "label", 'l', required_argument,
+ struct sanboot_options, label, parse_string ),
OPTION_DESC ( "uuid", 'u', required_argument,
struct sanboot_options, uuid, parse_uuid ),
},
@@ -135,6 +139,7 @@ static int sanboot_core_exec ( int argc, char **argv,
/* Construct configuration parameters */
config.filename = opts.filename;
config.extra = opts.extra;
+ config.label = opts.label;
config.uuid = opts.uuid.value;
/* Construct flags */