]> git.ozlabs.org Git - petitboot/blobdiff - utils/hooks/30-add-offb.c
hooks/add-offb: Add leading slash to HVC node paths
[petitboot] / utils / hooks / 30-add-offb.c
index d711908cf9efdf23fd3a9428b4235fc5630c3432..e5947ca6e931d134f36d564c98c66d06b468e802 100644 (file)
@@ -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);
 }
 
 /*