Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst/arch/sgimips Official builds now append a t...



details:   https://anonhg.NetBSD.org/src/rev/81a04b82da39
branches:  trunk
changeset: 321484:81a04b82da39
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Mar 17 22:27:04 2018 +0000

description:
Official builds now append a timestamp to the kernel config name, so we
can no longer rely on matching an exact name like "(INSTALL32_IP3x)".

Strip the trailing ) from the version strings checked so sysinst will
install the correct bootloader and kernel again.

diffstat:

 usr.sbin/sysinst/arch/sgimips/md.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (48 lines):

diff -r 3eb55365361e -r 81a04b82da39 usr.sbin/sysinst/arch/sgimips/md.c
--- a/usr.sbin/sysinst/arch/sgimips/md.c        Sat Mar 17 20:03:01 2018 +0000
+++ b/usr.sbin/sysinst/arch/sgimips/md.c        Sat Mar 17 22:27:04 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.3 2015/01/02 19:43:13 abs Exp $       */
+/*     $NetBSD: md.c,v 1.4 2018/03/17 22:27:04 jmcneill Exp $  */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -68,11 +68,11 @@
          * enable the installation of the corresponding GENERIC kernel.
          */
         uname(&instsys);
-        if (strstr(instsys.version, "(INSTALL32_IP3x)"))
+        if (strstr(instsys.version, "(INSTALL32_IP3x"))
                 set_kernel_set(SET_KERNEL_2);
-        else if (strstr(instsys.version, "(INSTALL32_IP2x)"))
+        else if (strstr(instsys.version, "(INSTALL32_IP2x"))
                 set_kernel_set(SET_KERNEL_1);
-       else if (strstr(instsys.version, "(GENERIC32_IP12)"))
+       else if (strstr(instsys.version, "(GENERIC32_IP12"))
                set_kernel_set(SET_KERNEL_3);
 }
 
@@ -156,12 +156,12 @@
 int
 md_post_disklabel(void)
 {
-    if (strstr(instsys.version, "(INSTALL32_IP3x)"))
+    if (strstr(instsys.version, "(INSTALL32_IP3x"))
                return run_program(RUN_DISPLAY,
                    "%s %s", "/usr/mdec/sgivol -f -w boot /usr/mdec/ip3xboot",
                    pm->diskdev);
 
-       if (strstr(instsys.version, "(INSTALL32_IP2x)")) {
+       if (strstr(instsys.version, "(INSTALL32_IP2x")) {
                run_program(RUN_DISPLAY,
                  "%s %s", "/usr/mdec/sgivol -f -w aoutboot /usr/mdec/aoutboot",
                  pm->diskdev);
@@ -198,7 +198,7 @@
        enable_rc_conf();
 #endif
 
-       if (strstr(instsys.version, "(GENERIC32_IP12)"))
+       if (strstr(instsys.version, "(GENERIC32_IP12"))
                run_program(0, "/usr/mdec/sgivol -f -w netbsd %s %s",
                            target_expand("/netbsd.ecoff"), pm->diskdev);
 }



Home | Main Index | Thread Index | Old Index