Module Name: src Committed By: snj Date: Tue Oct 4 17:14:08 UTC 2022
Modified Files: src/usr.sbin/sysinst/arch/landisk [netbsd-9]: md.c Log Message: Pull up following revision(s) (requested by martin in ticket #1535): usr.sbin/sysinst/arch/landisk/md.c: revision 1.16 PR install/57025: revert bogus rev 1.9 which was only papering over a bug in the adoption of the MBR handling code and fix the original conversion bug instead: - run fdisk to install the MBR bootcode on the raw disk partition - run installboot against the NetBSD root partition (not the raw partition). To generate a diff of this commit: cvs rdiff -u -r1.10.2.4 -r1.10.2.5 src/usr.sbin/sysinst/arch/landisk/md.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/arch/landisk/md.c diff -u src/usr.sbin/sysinst/arch/landisk/md.c:1.10.2.4 src/usr.sbin/sysinst/arch/landisk/md.c:1.10.2.5 --- src/usr.sbin/sysinst/arch/landisk/md.c:1.10.2.4 Wed Feb 2 04:25:39 2022 +++ src/usr.sbin/sysinst/arch/landisk/md.c Tue Oct 4 17:14:08 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: md.c,v 1.10.2.4 2022/02/02 04:25:39 msaitoh Exp $ */ +/* $NetBSD: md.c,v 1.10.2.5 2022/10/04 17:14:08 snj Exp $ */ /* * Copyright 1997,2002 Piermont Information Systems Inc. @@ -130,7 +130,9 @@ md_pre_disklabel(struct install_partitio msg_string(parts->pscheme->short_name)); /* write edited "MBR" onto disk. */ - if (!parts->pscheme->write_to_disk(parts)) { + if (!parts->pscheme->write_to_disk(parts) || + run_program(RUN_SILENT | RUN_ERROR_OK, + "/sbin/fdisk -f -i -c /usr/mdec/mbr %s", parts->disk)) { msg_display(MSG_wmbrfail); process_menu(MENU_ok, NULL); return false; @@ -166,7 +168,7 @@ md_post_newfs(struct install_partition_d bootxx = bootxx_name(install); if (bootxx != NULL) { error = run_program(RUN_DISPLAY, - "/usr/sbin/installboot -v /dev/r%sd %s", pm->diskdev, bootxx); + "/usr/sbin/installboot -v /dev/r%sa %s", pm->diskdev, bootxx); free(bootxx); } else error = -1;