summaryrefslogtreecommitdiffstats
path: root/lib/pb-config/pb-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pb-config/pb-config.c')
-rw-r--r--lib/pb-config/pb-config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/pb-config/pb-config.c b/lib/pb-config/pb-config.c
index ed84fec..2adc7b2 100644
--- a/lib/pb-config/pb-config.c
+++ b/lib/pb-config/pb-config.c
@@ -68,5 +68,10 @@ struct config *config_copy(void *ctx, const struct config *src)
dest->boot_priorities[i].type = src->boot_priorities[i].type;
}
+ if (src->boot_device && strlen(src->boot_device))
+ dest->boot_device = talloc_strdup(dest, src->boot_device);
+ else
+ dest->boot_device = NULL;
+
return dest;
}
OpenPOWER on IntegriCloud