Module Name: src
Committed By: nisimura
Date: Fri Apr 27 00:35:43 UTC 2012
Modified Files:
src/sys/arch/sandpoint/stand/altboot: main.c
Log Message:
Comment improvement. altboot(8) is now aware of the disk removal
for mirrored drive configuration.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/sandpoint/stand/altboot/main.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/arch/sandpoint/stand/altboot/main.c
diff -u src/sys/arch/sandpoint/stand/altboot/main.c:1.19 src/sys/arch/sandpoint/stand/altboot/main.c:1.20
--- src/sys/arch/sandpoint/stand/altboot/main.c:1.19 Thu Apr 26 19:59:37 2012
+++ src/sys/arch/sandpoint/stand/altboot/main.c Fri Apr 27 00:35:43 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.19 2012/04/26 19:59:37 phx Exp $ */
+/* $NetBSD: main.c,v 1.20 2012/04/27 00:35:43 nisimura Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -272,11 +272,11 @@ main(int argc, char *argv[], char *boota
break; /* break on first unknown string */
}
+ /*
+ * If no device name is given, we construct a list of drives
+ * which have valid disklabels.
+ */
if (n >= argc) {
- /*
- * If no device name is given we construct a list of drives
- * which have valid disklabels.
- */
n = 0;
argc = 0;
argv = alloc(MAX_UNITS * (sizeof(char *) + sizeof("wdN:")));
@@ -295,6 +295,7 @@ main(int argc, char *argv[], char *boota
}
}
+ /* try to boot off kernel from the drive list */
while (n < argc) {
bname = argv[n++];