tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

i386: boot using tftp by default when using pxeboot



pxeboot_ia32.bin tries to boot 'netbsd' by default, which fails in most
cases.  It does not make sense imo to try booting a local kernel when
booting the machine via PXE.  I suggest that when we boot using PXE, we
default to loading 'tftp:netbsd' instead.

Comments?  ok?

Index: sys/arch/i386/stand/pxeboot/main.c
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/stand/pxeboot/main.c,v
retrieving revision 1.20
diff -u -p -r1.20 main.c
--- sys/arch/i386/stand/pxeboot/main.c  21 Mar 2009 15:01:56 -0000      1.20
+++ sys/arch/i386/stand/pxeboot/main.c  13 Sep 2009 10:14:54 -0000
@@ -146,7 +146,7 @@ main(void)
 #endif
 
        printf("Press return to boot now, any other key for boot menu\n");
-       printf("booting netbsd - starting in ");
+       printf("booting tftp:netbsd - starting in ");
 
 #ifdef SMALL
        c = awaitkey(boot_params.bp_timeout, 1);
@@ -164,7 +164,7 @@ main(void)
         * The file name provided here is just a default.  If the
         * DHCP server provides a file name, we'll use that instead.
         */
-       bootit("netbsd", 0);
+       bootit("tftp:netbsd", 0);
 
        /*
         * If that fails, let the BIOS try the next boot device.
-- 
Marc Balmer, Micro Systems, Wiesendamm 2a, Postfach, CH-4019 Basel, Switzerland
http://www.msys.ch/     http://www.vnode.ch/   "In God we trust, in C we code."


Home | Main Index | Thread Index | Old Index