Module Name:    src
Committed By:   martin
Date:           Thu Feb  6 10:42:06 UTC 2020

Modified Files:
        src/usr.sbin/sysinst: disks.c

Log Message:
bootxx_name() - fix oversight in previous change (do not assume first
partition is the root partition)


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/usr.sbin/sysinst/disks.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/disks.c
diff -u src/usr.sbin/sysinst/disks.c:1.62 src/usr.sbin/sysinst/disks.c:1.63
--- src/usr.sbin/sysinst/disks.c:1.62	Mon Jan 27 21:21:22 2020
+++ src/usr.sbin/sysinst/disks.c	Thu Feb  6 10:42:06 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: disks.c,v 1.62 2020/01/27 21:21:22 martin Exp $ */
+/*	$NetBSD: disks.c,v 1.63 2020/02/06 10:42:06 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -2006,7 +2006,7 @@ bootxx_name(struct install_partition_des
 	switch (fstype) {
 #if defined(BOOTXX_FFSV1) || defined(BOOTXX_FFSV2)
 	case FS_BSDFFS:
-		if (install->infos[0].fs_version == 2) {
+		if (install->infos[i].fs_version == 2) {
 #ifdef BOOTXX_FFSV2
 			bootxxname = BOOTXX_FFSV2;
 #else

Reply via email to