Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/boot Fix i386 `boot' command to try the ...
details: https://anonhg.NetBSD.org/src/rev/7fea96485796
branches: trunk
changeset: 780696:7fea96485796
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Aug 04 03:51:27 2012 +0000
description:
Fix i386 `boot' command to try the usual set of kernel names.
Without this, the `boot' command will try only `netbsd', not
`netbsd.gz', `netbsd.old', &c.
Patch from PR port-i386/44562.
diffstat:
sys/arch/i386/stand/boot/boot2.c | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r f27729ff0e9b -r 7fea96485796 sys/arch/i386/stand/boot/boot2.c
--- a/sys/arch/i386/stand/boot/boot2.c Sat Aug 04 03:46:30 2012 +0000
+++ b/sys/arch/i386/stand/boot/boot2.c Sat Aug 04 03:51:27 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: boot2.c,v 1.57 2011/12/25 06:09:09 tsutsui Exp $ */
+/* $NetBSD: boot2.c,v 1.58 2012/08/04 03:51:27 riastradh Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -429,10 +429,21 @@
command_boot(char *arg)
{
char *filename;
- int howto;
+ int howto, tell;
+
+ if (!parseboot(arg, &filename, &howto))
+ return;
- if (parseboot(arg, &filename, &howto))
- bootit(filename, howto, (howto & AB_VERBOSE) != 0);
+ tell = ((howto & AB_VERBOSE) != 0);
+ if (filename != NULL) {
+ bootit(filename, howto, tell);
+ } else {
+ int i;
+ for (i = 0; i < NUMNAMES; i++) {
+ bootit(names[i][0], howto, tell);
+ bootit(names[i][1], howto, tell);
+ }
+ }
}
void
Home |
Main Index |
Thread Index |
Old Index