From 177addc2dd991c687716d101849170be403dbe1f Mon Sep 17 00:00:00 2001 From: Martijn van Duren Date: Sat, 26 Nov 2016 16:31:33 +0000 Subject: Allow rootdev to be specified without /dev/ prefix. The full path isn't needed down the road anyway. Both forms are supported. e.g. rootdev=/dev/sd0 and rootdev=sd0 OK visa@ --- sys/arch/octeon/octeon/autoconf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/octeon/octeon/autoconf.c b/sys/arch/octeon/octeon/autoconf.c index fe6084d7bc6..7b4434c2449 100644 --- a/sys/arch/octeon/octeon/autoconf.c +++ b/sys/arch/octeon/octeon/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.8 2016/05/18 01:21:40 visa Exp $ */ +/* $OpenBSD: autoconf.c,v 1.9 2016/11/26 16:31:32 martijn Exp $ */ /* * Copyright (c) 2009 Miodrag Vallat. * @@ -89,7 +89,9 @@ parse_uboot_root(void) */ p = strrchr(uboot_rootdev, '/'); if (p == NULL) - return; + p = strchr(uboot_rootdev, '='); + if (p == NULL) + return; p++; len = strlen(p); -- cgit v1.2.3