Module Name: src
Committed By: manu
Date: Sun Sep 15 23:59:33 UTC 2019
Modified Files:
src/sys/kern: kern_subr.c
Log Message:
Rollback change to accept NAME=label root device specification
As suggested by Michael van Elst, the operation should be done
int getwedgename()
To generate a diff of this commit:
cvs rdiff -u -r1.225 -r1.226 src/sys/kern/kern_subr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/kern_subr.c
diff -u src/sys/kern/kern_subr.c:1.225 src/sys/kern/kern_subr.c:1.226
--- src/sys/kern/kern_subr.c:1.225 Fri Sep 13 01:33:20 2019
+++ src/sys/kern/kern_subr.c Sun Sep 15 23:59:33 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_subr.c,v 1.225 2019/09/13 01:33:20 manu Exp $ */
+/* $NetBSD: kern_subr.c,v 1.226 2019/09/15 23:59:33 manu Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2002, 2007, 2008 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.225 2019/09/13 01:33:20 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.226 2019/09/15 23:59:33 manu Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@@ -229,16 +229,6 @@ setroot(device_t bootdv, int bootpartiti
*/
setroot_nfs(bootdv);
-
- /*
- * Try to lookup by wedge label name
- */
- if (bootdv == NULL && rootspec != NULL &&
- strncmp(rootspec, "NAME=", 5) == 0) {
- if ((bootdv = dkwedge_find_by_wname(rootspec + 5)) != NULL)
- rootspec = bootdv->dv_xname;
- }
-
/*
* If no bootdv was found by MD code and no
* root specified ask the user.