Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/usr.sbin/sysinst/arch/sgimips Pull up following revision(...
details: https://anonhg.NetBSD.org/src/rev/5c9116ad6be4
branches: netbsd-7
changeset: 800448:5c9116ad6be4
user: martin <martin%NetBSD.org@localhost>
date: Wed Mar 21 11:42:17 2018 +0000
description:
Pull up following revision(s) (requested by jmcneill in ticket #1584):
usr.sbin/sysinst/arch/sgimips/md.c: revision 1.4
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 4ae0d11de06f -r 5c9116ad6be4 usr.sbin/sysinst/arch/sgimips/md.c
--- a/usr.sbin/sysinst/arch/sgimips/md.c Wed Mar 21 11:08:05 2018 +0000
+++ b/usr.sbin/sysinst/arch/sgimips/md.c Wed Mar 21 11:42:17 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.2.4.1 2015/01/11 04:32:39 snj Exp $ */
+/* $NetBSD: md.c,v 1.2.4.2 2018/03/21 11:42:17 martin 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