Source-Changes-HG archive

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

[src/netbsd-1-6]: src/distrib/utils/sysinst/arch/hpcmips Pull up revision 1.1...



details:   https://anonhg.NetBSD.org/src/rev/4180bbc7e8a9
branches:  netbsd-1-6
changeset: 527903:4180bbc7e8a9
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Jun 14 17:12:39 2002 +0000

description:
Pull up revision 1.13 (requested by lukem in ticket #272):
Setup default mbr_bootsel labels for used partitions, since the previous
default was for them to be empty, and that meant that they wouldn't get shown
at boot time.   Fix from Tyler Retzlaff <rtr%wasabisystems.com@localhost>

diffstat:

 distrib/utils/sysinst/arch/hpcmips/md.c |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r b659cfcb1af7 -r 4180bbc7e8a9 distrib/utils/sysinst/arch/hpcmips/md.c
--- a/distrib/utils/sysinst/arch/hpcmips/md.c   Thu Jun 13 04:33:35 2002 +0000
+++ b/distrib/utils/sysinst/arch/hpcmips/md.c   Fri Jun 14 17:12:39 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.12 2001/01/14 02:38:18 mrg Exp $ */
+/*     $NetBSD: md.c,v 1.12.2.1 2002/06/14 17:12:39 lukem Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -625,6 +625,15 @@
        mbs = (struct mbr_bootsel *)&mbr[MBR_BOOTSELOFF];
        mbs->flags = BFL_SELACTIVE;
 
+       /* Setup default labels for partitions, since if not done by user */
+       /* they don't get set and and bootselector doesn't 'appear' when  */
+       /* it's loaded.                                                   */
+       for (i = 0; i < NMBRPART; i++) {
+               if (parts[i].mbrp_typ != 0 && mbs->nametab[i][0] == '\0')
+                       snprintf(mbs->nametab[i], sizeof(mbs->nametab[0]),
+                           "entry %d", i+1);
+       }
+
        process_menu(MENU_configbootsel);
 
        for (i = 0; i < NMBRPART; i++) {



Home | Main Index | Thread Index | Old Index