From 0611a74491328d9ce346957c2320310a21caa8a9 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 5 Aug 2016 15:05:11 +0800 Subject: [PATCH] hooks/add-offb: Add leading slash to HVC node paths We need an absolute path to the serial@N device. It looks like some kernels aren't reading the current path correctly, leading to no console output. Signed-off-by: Jeremy Kerr Acked-by: Stewart Smith Signed-off-by: Samuel Mendoza-Jonas --- utils/hooks/30-add-offb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/hooks/30-add-offb.c b/utils/hooks/30-add-offb.c index d711908..e5947ca 100644 --- a/utils/hooks/30-add-offb.c +++ b/utils/hooks/30-add-offb.c @@ -474,7 +474,7 @@ static char *get_hvc_path(struct offb_ctx *ctx, unsigned int termno) return NULL; } - return talloc_asprintf(ctx, "ibm,opal/consoles/%s", serial); + return talloc_asprintf(ctx, "/ibm,opal/consoles/%s", serial); } /* -- 2.39.2