text: Up to [cvs.NetBSD.org] / src / distrib / utils / sysinst
  Request diff between arbitrary revisions
  Default branch: MAIN
  Revision 1.26.8.1, Tue Aug 19 23:45:46 2014 UTC (5 months, 1 week ago) by tls
  Branch: tls-maxphys
  Changes since 1.26: +1 -1 lines
  FILE REMOVED
  Rebase to HEAD as of a few days ago.
  Revision 1.26.20.1, Sun Aug 10 06:48:49 2014 UTC (5 months, 3 weeks ago) by tls
  Branch: tls-earlyentropy
  Changes since 1.26: +1 -1 lines
  FILE REMOVED
  Rebase.
  Revision 1.27, Sat Jul 26 19:30:39 2014 UTC (6 months ago) by dholland
  Branch: MAIN
  CVS Tags: tls-maxphys-base, tls-earlyentropy-base, HEAD
  Changes since 1.26: .26 / (download) - annotate - [select for diffs], Thu Jun 30 20:09:15 2011 UTC (3 years, 7 months
  Branch point for: tls-maxphys, tls-earlyentropy
  Changes since 1.25: +2 -2 lines
  Diff to previous 1.25 (colored)
  dependant -> dependent
  Revision 1.25 / (download) - annotate - [select for diffs], Mon Apr 4 08:30:12 2011 UTC (3 years, 9 months ago) by mbalmer
  Branch: MAIN
  CVS Tags: cherry-xenmp-base, cherry-xenmp
  Changes since 1.24: +9 -13 lines
  Diff to previous 1.24 (colored)
  Remove the advertisement clause from files copyrighted by Piermont Information Systems, with the consent of the copyright owner, Perry E. Metzger.
  Revision 1.22.36.1 / (download) - annotate - [select for diffs], Wed Apr 21 05:20:43 2010 UTC (4 years, 9 months ago) by matt
  Branch: matt-nb5-mips64
  CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
  Changes since 1.22: +2 -2 lines
  Diff to previous 1.22 (colored) next main 1.23 (colored)
  sync to netbsd-5
  Revision 1.24 / (download) - annotate - [select for diffs], Sat Sep 19 14:57:27 2009 UTC (5 years, 4 months ago) by abs
  Branch: MAIN
  CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
  Changes since 1.23: +2 -2 lines
  Diff to previous 1.23 (colored)
  defs.h: - Re-order the md_*() definitions so they are in the order called - Add some comments - Remove obsolete md_set_no_x() definition - Remove md_copy_filesystem() - #if defined(DEBUG) declare backtowin(void) to avoid scattering externs in various md .c files mbr.[ch]: - Add a set_bios_geom_with_mbr_guess() which can be called by all the non x86 ports rather than copying the same code into arc, bebox, cobalt, evbmips, evbppc, hpcarm, hpcmips, landisk, ofppc, prep, sandpoint, and zaurus md.c install.c: - Remove now unnecessary call to md_copy_filesystem() upgrade.c: - Move move_aout_libs() here, and put under #ifdef AOUT2ELF - Rather than having *every* md_update call wrefresh(curscr), wmove(stdscr, 0, 0), wclear(stdscr), and wrefresh(stdscr), move them here arch/acorn26/md.c: - Just include arch/acorn32/md.c, but add a note there warning about this, and while here add a note to i386/md.c that it is included by amd64 arch/*/md.c: - By all means "Vive la difference", but we have 38 pairs of md.[ch], and they could not even agree on the order in which to list the md hooks, let alone formatting. Sort the md hooks to match the (now sane) order in def.sh, and try to normalise the formatting - Also copy across some function level comments everywhere - Ensure functions only used inside each md.c are defined as static - Remove some now unused functions - Some files had enable_rc_conf in #ifdef DEBUG. Add this to all - bebox, evbppc and sandpoint were still playing broken games with copying the booted ramdisk to the target disk, the primary result of which was just to slow things down and ensure the target system lost the .profile extracted from the sets. Just kill this. - For some ports md_update() called endwin(), and in others not. Take a cure from i386/amd64 and a few other more active ports, and update everything to match (no endwin()) - In a couple of cases correct port names in comments - ANSIfy some lingering old style functions - Consistently use "return 0;" rather than "return (0);" More of the mbr code should be abstracted, along with the get_ramsize() / set_swap() logic, but this is (more than) enough for one day... sysinst built for all ports but only runtime tested on amd64 & i386
  Revision 1.22.30.1 / (download) - annotate - [select for diffs], Mon May 18 19:35:14 2009 UTC (5 years, 8.22: +2 -2 lines
  Diff to previous 1.22 (colored) next main 1.23 .23 / (download) - annotate - [select for diffs], Thu May 14 16:23:38 2009 UTC (5 years, 8 months ago) by sborrill
  Branch: MAIN
  Changes since 1.22: +2 -2 lines
  Diff to previous 1.22 (colored)
  Support drives over 1TB in size (i.e. stop errors like drive is -654343MB in size). Error if drive is over 2TB in size (and thus over the disklabel limit).
  Revision 1.22.20.1, Sun Oct 5 20:11:09 2008 UTC (6 years, 3 months ago) by mjf
  Branch: mjf-devfs2
  Changes since 1.22: +1 -1 lines
  FILE REMOVED
  Sync with HEAD.
  Revision 1.22 / (download) - annotate - [select for diffs], Wed Apr 5 16:55:05 2006 UTC (8 years, 9 months ago) by garbled, pc532-eol-2008,-base, mjf-devfs,
  Branch point for: netbsd-5, mjf-devfs2, matt-nb5-mips64
  Changes since 1.21: +6 -1 lines
  Diff to previous 1.21 (colored)
  Rather big update to sysinst, in order to get it working on the prep port. 1) Add an md_post_extract() function. This function is called after extracting the sets, and allows the arch to do something at that time. In the case of prep, it is much easier to install the bootcode after all the sets are extracted, so we do it in md_post_extract(). Added empty md_post_extract() functions to all other arches so they compile. 2) Add md_mbr_use_wholedisk() and md_check_mbr(). In edit_mbr() I have split off the code that uses the whole disk for NetBSD, into the mbr_use_wholedisk() function. On most ports that use mbr.c, I made md_mbr_use_wholedisk() just call that and return. On prep we create the magical prep boot partition here. The md_check_mbr() function allows the arch to add additional checks after the user had manually edited the MBR to make sure the choices he made allow NetBSD to function. Added a dummy routine to all mbr.c using arches. 3) Added code to bsdlabel.c to create a partition of type boot if PART_BOOT is defined, but BOOT_SIZE is not defined. Also added two more globals "bootsize" and "bootstart" which must be seeded in order to do so. This is done on prep in md_check_mbr(). 4) Added MBR_PTYPE_PREP to the list of MBR partitions. 5) Made the prep port actually install sanely. It now creates a prep boot partition, labels it correctly, installs all the sets, and then runs mkbootimage and dd's the bootimage into the prep partition. The result is a prep installer that creates a bootable NetBSD installation automatically. 6) Edited the prep menus and messages files to add new labels. In the case of the translated files, I just added the words in english for someone to translate later. I tried to xcompile a few arches to make sure I didn't break anything, but I could have missed something. Please let me know if I have broken your arch in any way. I'll watch the autobuilds for the next few days too. For all ports other than prep there should be no functional changes at all.
  Revision 1.18.2.1.2.1 / (download) - annotate - [select for diffs], Sun Jul 24 02:25:24 2005 UTC (9 years,.18.2.1: +3 -3 lines
  Diff to previous 1.18.2.1 (colored) next main 1.19 (colored)
  Apply patch (requested by riz in ticket #5523): Sync sysinst with HEAD of 2005-07-23.
  Revision 1.21 / (download) - annotate - [select for diffs], Sat Jul 17 19:36:59 2004 UTC (10 years,.20: +2 -2 lines
  Diff to previous 1.20 (colored)
  Kill two more global variables, bsize (bios disk size) was never used and bcylsize (bios cylinder size) can be calculated in the one place it is needed. The ask_sizemult() call will go once I decide what to to with the (slightly useful) explanatory text about cylinder alignment.
  Revision 1.20 / (download) - annotate - [select for diffs], Sun Jun 6 06:06:59 2004 UTC (10 years, 7 months ago) by christos
  Branch: MAIN
  Changes since 1.19: +3 -3 lines
  Diff to previous 1.19 (colored)
  Get rid of the EXTERN/INIT mess; fix so that we can process this with xstr(1). Not worth processing though, since on the i386 we only save ~3K.
  Revision 1.18.2.1 / (download) - annotate - [select for diffs], Wed Apr 28 05:59:15 2004 UTC (10 years, 9 months ago) by jmc.18: +3 -2 lines
  Diff to previous 1.18 (colored) next main 1.19 (colored)
  Pullup rev 1.19 (requested by dsl in ticket #199) the old version had the bootselect code (otherwise you get an empty menu). PR#25146
  Revision 1.19 / (download) - annotate - [select for diffs], Sun Apr 25 21:55:18 2004 UTC (10 years, 9 months ago) by dsl
  Branch: MAIN
  Changes since 1.18: +3 -2 lines
  Diff to previous 1.18 (colored) teh old version had the bootselect code (otherwise you get an empty menu). Probably fixes PR install/25146
  Revision 1.18 / (download) - annotate - [select for diffs], Wed Oct 8 04:25:44 2003 UTC (11 years, 3 months ago) by lukem
  Branch: MAIN
  CVS Tags: netbsd-2-0-base
  Branch point for: netbsd-2-0
  Changes since 1.17: +19 -7 lines
  Diff to previous 1.17 (colored)
  Overhaul MBR handling (part 1): <sys/bootblock.h>: * Added definitions for the Master Boot Record (MBR) used by a variety of systems (primarily i386), including the format of the BIOS Parameter Block (BPB). This information was cribbed from a variety of sources including <sys/disklabel_mbr.h> which this is a superset of. As part of this, some data structure elements and #defines were renamed to be more "namespace friendly" and consistent with other bootblocks and MBR documentation. Update all uses of the old names to the new names. <sys/disklabel_mbr.h>: * Deprecated in favor of <sys/bootblock.h> (the latter is more "host tool" friendly). amd64 & i386: * Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to be consistent with the naming convention of the msdosfs tools. * Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1 and it's confusing to have two functionally equivalent bootblocks, especially given that "ufs" has multiple meanings (it could be a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems). * Rework pbr.S (the first sector of bootxx_*): + Ensure that BPB (bytes 11..89) and the partition table (bytes 446..509) do not contain code. + Add support for booting from FAT partitions if BOOT_FROM_FAT is defined. (Only set for bootxx_msdos). + Remove "dummy" partition 3; if people want to installboot(8) these to the start of the disk they can use fdisk(8) to create a real MBR partition table... + Compile with TERSE_ERROR so it fits because of the above. Whilst this is less user friendly, I feel it's important to have a valid partition table and BPB in the MBR/PBR. * Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent with other platforms. * Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that we can boot off FAT partitions. * Crank version of /usr/mdec/boot to 3.1, and fix some of the other entries in the version file. installboot(8) (i386): * Read the existing MBR of the filesystem and retain the BIOS Parameter Block (BPB) in bytes 11..89 and the MBR partition table in bytes 446..509. (Previously installboot(8) would trash those two sections of the MBR.) mbrlabel(8): * Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code to map the MBR partition type to the NetBSD disklabel type. Test built "make release" for i386, and new bootblocks verified to work (even off FAT!).
  Revision 1.17 / (download) - annotate - [select for diffs], Fri Jul 25 08:26:22 2003 UTC (11 years, 6 months ago) by dsl
  Branch: MAIN
  Changes since 1.16: +2 -2 lines
  Diff to previous 1.16 (colored)
  Sprinkle a load of consts, and change a few variable names. Now compiles with WARNS=3.
  Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 7 12:30:20 2003 UTC (11 years, 6 months ago) by dsl
  Branch: MAIN
  Changes since 1.15: +30 -13 lines
  Diff to previous 1.15 (colored)
  Another pass of the rototiller. Mainly: 1) New MBR editor 2) Hierarchic timezone menu
  Revision 1.15 / (download) - annotate - [select for diffs], Mon Jun 16 19:42:14 2003 UTC (11 years, 7 months ago) by dsl
  Branch: MAIN
  Changes since 1.14: +17 -17 lines
  Diff to previous 1.14 (colored)
  A load of KNF changes, plus a couple of strnxxx => strlxxx my fingers did on the way through.
  Revision 1.14 / (download) - annotate - [select for diffs], Sat Jun 14 12:58:45 2003 UTC (11 years, 7 months ago) by dsl
  Branch: MAIN
  Changes since 1.13: +3 -3 lines
  Diff to previous 1.13 .13 / (download) - annotate - [select for diffs], Fri May 16 19:38:18 2003 UTC (11 years, 8 months ago) by dsl
  Branch: MAIN
  Changes since 1.12: +6 -3 lines
  Diff to previous 1.12 (colored)
  Move definition of BOOTSEL to MD Makefile
  Revision 1.12 / (download) - annotate - [select for diffs], Wed May 7 19:02:53 2003 UTC (11 years, 8 months ago) by dsl
  Branch: MAIN
  Changes since 1.11: +11 -1 lines
  Diff to previous 1.11 (colored)
  Pull some code fragments from machine and language dependant files into mbr.c Resynchronise amd64 with i386
  Revision 1.11 / (download) - annotate - [select for diffs], Wed May 7 10:20:18 2003 UTC (11 years, 8 months ago) by dsl
  Branch: MAIN
  Changes since 1.10: +7 -7 lines
  Diff to previous 1.10 (colored)
  Use C structure mbr_sector_t instead of char[] for 'mbr'. (I hope the edits for the ports I can't build are right!) i386/amd64 pick up a minor change to the md_read_bootcode which might preseve the bootselect config.
  Revision 1.10 / (download) - annotate - [select for diffs], Fri Jan 10 20:00:28 2003 UTC (12 years ago) by christos
  Branch: MAIN
  Changes since 1.9: +3 -3 lines
  Diff to previous 1.9 (colored)
  pass lint[pass1]
  Revision 1.9 / (download) - annotate - [select for diffs], Fri Dec 22 10:12:13 2000 UTC (14 years, 1 month ago) by mrg: +17 -17 lines
  Diff to previous 1.8 (colored)
  de-__P()-ify
  Revision 1.4.2.5 / (download) - annotate - [select for diffs], Mon Jul 12 19:30:24 1999 UTC (15 years, 6 months ago) by perry
  Branch: netbsd-1-4
  CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
  Changes since 1.4.2.4: +2 -2 lines
  Diff to previous 1.4.2.4 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)
  pullup 1.7->1.8 (fvdl): fix upgrade core dump
  Revision 1.8 / (download) - annotate - [select for diffs], Sat Jul 10 23:07:15 1999 UTC (15 years, 6 months ago) by fvd)
  Don't try to convert the CHS values if not needed. Add extra flag to write_mbr to for this.
  Revision 1.4.2.4 / (download) - annotate - [select for diffs], Thu Jun 24 23:00:04 1999 UTC (15 years, 7 months ago) by cgd
  Branch: netbsd-1-4
  Changes since 1.4.2.3: +2 -2 lines
  Diff to previous 1.4.2.3 (colored) to branchpoint 1.4 (colored)
  pull up rev(s) 1.7 from trunk. (cgd)
  Revision 1.7 / (download) - annotate - [select for diffs], Sun Jun 20 06:08:14 1999 UTC (15 years, 7 months ago) by cgd
  Branch: MAIN
  CVS Tags: dynamic-messages-base, dynamic-messages
  Changes since 1.6: +2 -2 lines
  Diff to previous 1.6 (colored)
  copyright notice typo fixups, as noticed in PR#7248. This software was developed, not develooped.
  Revision 1.4.2.3 / (download) - annotate - [select for diffs], Sun May 2 21:44:32 1999 UTC (15 years, 9 months ago) by perry
  Branch: netbsd-1-4
  CVS Tags: netbsd-1-4-RELEASE
  Changes since 1.4.2.2: +2 -1 lines
  Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored)
  pullup 1.5->1.6 (fvdl)
  Revision 1.6 / (download) - annotate - [select for diffs], Sun May 2 13:07:15 1999 UTC (15 years, 9 months ago) by fvdl
  Branch: MAIN
  Changes since 1.5: +2 -1 lines
  Diff to previous 1.5 (colored)
  Change partition type if we're installing into an old 386bsd partition. Check if there's no active partition after MBR editing. Ask for own MBR to be installed if we're booting from out of CHS range. Ask for bootselector to be installed if > 1 OS, and configure it.
  Revision 1.4.2.2 / (download) - annotate - [select for diffs], Mon Apr 19 15:19:27 1999 UTC (15 years, 9 months ago) by perry
  Branch: netbsd-1-4
  Changes since 1.4.2.1: +1 -1 lines
  Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)
  sync with head. yes, this is an unorthodox pullup.
  Revision 1.4.2.1 / (download) - annotate - [select for diffs], Mon Apr 5 15:08:40 1999 UTC (15 years, 9 months ago) by simonb
  Branch: netbsd-1-4
  Changes since 1.4: +2 -1 lines
  Diff to previous 1.4 (colored)
  Pull up rev 1.5 from trunk.
  Revision 1.5 / (download) - annotate - [select for diffs], Mon Apr 5 06:59:36 1999 UTC (15 years, 10 months ago) by simonb
  Branch: MAIN
  Changes since 1.4: +2 -1 lines
  Diff to previous 1.4 (colored)
  Move prototype for disp_cur_part() from defs.h to mbr.h.
  Revision 1.4 / (download) - annotate - [select for diffs], Wed Mar 31 00:44:48 1999 UTC (15 years, 10 months ago) by fvdl
  Branch: MAIN
  CVS Tags: netbsd-1-4-base
  Branch point for: netbsd-1-4
  Changes since 1.3: +26 -8 lines
  Diff to previous 1.3 (colored).
  Revision 1.3 / (download) - annotate - [select for diffs], Tue Jul 21 14:53:36 1998 UTC (16 years, 6 months ago) by rvb
  Branch: MAIN
  Changes since 1.2: +1 -2 lines
  Diff to previous 1.2 (colored)
  Fix BIOS GEOMETRY menu
  Revision 1.2 / (download) - annotate - [select for diffs], Sat Jun 20 13:05:49 1998 UTC (16 years, 7 months ago) by mrg
  Branch: MAIN
  Changes since 1.1: +7 -7 lines
  Diff to previous 1.1 (colored)
  KNF.
  Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 24 05:36:03 1998 UTC (16 years, 11 months ago) by jonathan
  Branch: MAIN
  Move DOS BIOS-geometry and MBR-handling code to MI code for powerpc, arc: * Split bios geometry and MBR partition editing code formerly in arch/i386/{md,fdisk}.c to mbr.c in mi directory. * Leave /sbin/fdisk parsing/handling code in separate file, we may want to change it later. move to mi directory. * Create mbr.h with declarations for MBR/BIOS-geomotry code. #include "mbr.h" in i386 md.h. * Use symbolic names for 386bsd and new NetBSD partition IDs. Handle MBRs with both 386bsd and NetBSD partitions less stupidly.
  This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.