svn commit: r218628 - user/nwhitehorn/bsdinstall/partedit

Takahashi Yoshihiro nyan at FreeBSD.org
Sun Feb 13 03:20:45 UTC 2011


Author: nyan
Date: Sun Feb 13 03:20:44 2011
New Revision: 218628
URL: http://svn.freebsd.org/changeset/base/218628

Log:
  Fix pc98 support.
  
  Reviewed by:	nwhitehorn

Modified:
  user/nwhitehorn/bsdinstall/partedit/partedit_pc98.c

Modified: user/nwhitehorn/bsdinstall/partedit/partedit_pc98.c
==============================================================================
--- user/nwhitehorn/bsdinstall/partedit/partedit_pc98.c	Sun Feb 13 00:14:13 2011	(r218627)
+++ user/nwhitehorn/bsdinstall/partedit/partedit_pc98.c	Sun Feb 13 03:20:44 2011	(r218628)
@@ -9,10 +9,10 @@ default_scheme(void) {
 
 int
 is_scheme_bootable(const char *part_type) {
-	if (strcmp(part_type, "PC98") == 0)
-		return (1);
 	if (strcmp(part_type, "BSD") == 0)
 		return (1);
+	if (strcmp(part_type, "PC98") == 0)
+		return (1);
 
 	return (0);
 }
@@ -25,6 +25,8 @@ bootpart_size(const char *part_type) {
 
 const char *
 bootcode_path(const char *part_type) {
+	if (strcmp(part_type, "PC98") == 0)
+		return ("/boot/pc98boot");
 	if (strcmp(part_type, "BSD") == 0)
 		return ("/boot/boot");
 


More information about the svn-src-user mailing list