summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2016-08-05 15:05:11 +0800
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-08-08 16:39:37 +1000
commit0611a74491328d9ce346957c2320310a21caa8a9 (patch)
treec47192571f7c05e979398a343e1c98d37495831a
parent872332c7b5e76a907c0b773c35fcef27d5c94bff (diff)
downloadtalos-petitboot-0611a74491328d9ce346957c2320310a21caa8a9.zip
talos-petitboot-0611a74491328d9ce346957c2320310a21caa8a9.tar.gz
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 <jk@ozlabs.org> Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--utils/hooks/30-add-offb.c2
1 files changed, 1 insertions, 1 deletions
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);
}
/*
OpenPOWER on IntegriCloud