Up to [cvs.NetBSD.org] / src / distrib / utils / sysinst
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.46 / (download) - annotate - [select for diffs], Fri Apr 6 23:48:53 2012 UTC (13 months, 2 weeks ago) by riz
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-nbase, tls-maxphys-base, tls-maxphys, khorben-n900, agc-symver-base, agc-symver, HEAD
Changes since 1.45: +2 -5 lines
Diff to previous 1.45 (colored)
Implement a post-install configuration menu, as proposed on tech-install. Enables the user to configure a few additional items, including using pkgin to manage binary packages, in a post-install menu which replaces the series of questions (Do you want to set a root password? etc). This is by no means a perfect solution, nor should it discourage anyone from working on more sweeping changes to sysinst. Some bug fixes, and .de translation provided by Julian Fagir. XXX .es, .fr and .pl translations still needed. Please help!
Revision 1.45 / (download) - annotate - [select for diffs], Mon Apr 4 08:30:12 2011 UTC (2 years, 1 month ago) by mbalmer
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.44: +10 -14 lines
Diff to previous 1.44 (colored)
Remove the advertisement clause from files copyrighted by Piermont Information Systems, with the consent of the copyright owner, Perry E. Metzger.
Revision 1.44 / (download) - annotate - [select for diffs], Sat Dec 4 14:57:56 2010 UTC (2 years, 5 months ago) by jmmv
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.43: +1 -3 lines
Diff to previous 1.43 (colored)
Remove password cipher selection as discussed in current-users@. Users who really really really want to change the default setting can continue to change their cipher algorithm right after a clean install by modifying /etc/passwd.conf and regenerating the root password if previously set by sysinst.
Revision 1.43 / (download) - annotate - [select for diffs], Sat Sep 19 14:57:27 2009 UTC (3 years, 8 months ago) by abs
CVS Tags: matt-premerge-20091211
Changes since 1.42: +1 -4 lines
Diff to previous 1.42 (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.42 / (download) - annotate - [select for diffs], Wed Apr 5 16:55:01 2006 UTC (7 years, 1 month ago) by garbled
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, pc532-eol-2008, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs2-base, mjf-devfs-base, mjf-devfs, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: mjf-devfs2
Changes since 1.41: +4 -1 lines
Diff to previous 1.41 (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.41 / (download) - annotate - [select for diffs], Sat Jul 9 14:56:23 2005 UTC (7 years, 10 months ago) by xtraeme
Changes since 1.40: +4 -2 lines
Diff to previous 1.40 (colored)
After calling the function to find the disks, refresh the screen again. This removes messages like "sd0: fabricating a geometry".
Revision 1.40 / (download) - annotate - [select for diffs], Sat Jun 5 21:18:59 2004 UTC (8 years, 11 months ago) by dsl
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.39: +3 -11 lines
Diff to previous 1.39 (colored)
A load of usability fixes mainly to network installs. I've made the error retry loops go back as far as the input menus. Split all the pathname inputs into 2 pieces (base directory and set directory). Reduced the size of some fixed strings. Stopped the install aborting if ftp can't find a set (eg the X ones). The French and Polish transations don't differenciate between Base_dir and Set_dir - but that can be fixed later.
Revision 1.39 / (download) - annotate - [select for diffs], Sun Apr 18 21:34:56 2004 UTC (9 years, 1 month ago) by dsl
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)
Throw out all the crap to do with etc.old, instead install etc/tgz into /.sysinst and use /etc/postinstall to do the merge.
Revision 1.38 / (download) - annotate - [select for diffs], Sat Sep 27 10:47:17 2003 UTC (9 years, 7 months ago) by dsl
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.37: +1 -9 lines
Diff to previous 1.37 (colored)
Use new kern.root_partition sysctl to find out whether we are installing over the current root (ie the one we are booted from). Remove all the stuff that tried to find this out by other means. A few other message changes.
Revision 1.37 / (download) - annotate - [select for diffs], Fri Jul 25 08:26:21 2003 UTC (9 years, 10 months ago) by dsl
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored)
Sprinkle a load of consts, and change a few variable names. Now compiles with WARNS=3.
Revision 1.36 / (download) - annotate - [select for diffs], Fri Jun 27 22:20:15 2003 UTC (9 years, 10 months ago) by dsl
Changes since 1.35: +2 -3 lines
Diff to previous 1.35 (colored)
Add run-time selection of installation language. Make 'doingwhat' an argument to find_disks() instead of a global.
Revision 1.35 / (download) - annotate - [select for diffs], Wed Jun 25 15:45:22 2003 UTC (9 years, 11 months ago) by dsl
Changes since 1.34: +5 -4 lines
Diff to previous 1.34 (colored)
Add a -D (debug) option for testing. Ignore inability to remove swap if -D specified. Select disk before sets (but label after) Let mac68k sysinst run on i386.
Revision 1.34 / (download) - annotate - [select for diffs], Mon Jun 16 19:42:14 2003 UTC (9 years, 11 months ago) by dsl
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)
A load of KNF changes, plus a couple of strnxxx => strlxxx my fingers did on the way through.
Revision 1.33 / (download) - annotate - [select for diffs], Mon Jun 16 10:42:47 2003 UTC (9 years, 11 months ago) by dsl
Changes since 1.32: +3 -7 lines
Diff to previous 1.32 (colored)
Correct check for active swap on install disk. Use swapctl() for all swap operations. Remove md_upgrade_mbrtype() from arc and hpcmips ports. (I haven't finalised what I'm doing about type 165 partitions, but the existing code is borked.)
Revision 1.32 / (download) - annotate - [select for diffs], Wed Jun 11 21:35:35 2003 UTC (9 years, 11 months ago) by dsl
Changes since 1.31: +3 -1 lines
Diff to previous 1.31 (colored)
rototil of the set selection menu I've also made the set selection happen first. This lets me test it! also measn the selected sets could be used in the disk partition code. Removed the 'with X' disk layout question (now too late to change the sets).
Revision 1.31 / (download) - annotate - [select for diffs], Tue Jun 3 11:54:48 2003 UTC (9 years, 11 months ago) by dsl
Changes since 1.30: +9 -9 lines
Diff to previous 1.30 (colored)
Add NULL to all process_menu() calls - value is passed through to the action routine. Make the french and polish versions compile. NB needs a new version of menuc - so need 'build.sh tools'
Revision 1.30 / (download) - annotate - [select for diffs], Wed Nov 13 00:43:09 2002 UTC (10 years, 6 months ago) by chris
CVS Tags: fvdl_fs64_base
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)
pleasemountroot has 4 %s's in it. Note that the fr translation needs updating to 4.
Revision 1.29 / (download) - annotate - [select for diffs], Mon Jul 29 03:05:16 2002 UTC (10 years, 9 months ago) by grant
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)
add setting of root's shell, from Julio Merino in install/17676 with minor changes by me.
Revision 1.28 / (download) - annotate - [select for diffs], Thu Apr 4 14:26:44 2002 UTC (11 years, 1 month ago) by ad
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored)
Allow the password cipher to be chosen at install time. XXX Not tested for real yet, and the French files need updating.
Revision 1.27 / (download) - annotate - [select for diffs], Sun Jan 7 13:07:57 2001 UTC (12 years, 4 months ago) by jdc
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)
Use wrefresh(curscr) instead of clearok(). Suggested by Thomas Dickey.
Revision 1.26 / (download) - annotate - [select for diffs], Sun Dec 31 13:08:05 2000 UTC (12 years, 4 months ago) by jdc
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)
Be paranoid and do a clearok() before we do a refresh().
Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 21 21:42:02 2000 UTC (12 years, 5 months ago) by jdc
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)
Don't output the termcap `cl' sequence. XXX: do we really need to home the cursor here? XXX: should we do clearok() instead or in addition?
Revision 1.24 / (download) - annotate - [select for diffs], Sun Oct 22 22:57:04 2000 UTC (12 years, 7 months ago) by fvdl
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored)
Print an install complete message; this got lost when I changed things to move this to after zetting the time zone.
Revision 1.23 / (download) - annotate - [select for diffs], Wed Oct 11 23:47:55 2000 UTC (12 years, 7 months ago) by fvdl
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)
* Change the interface of run_prog: use a flags argument instead of seperate booleans. Add flags to run as a plain 'system()' command, fullscreen (but on a pty), and chrooted, and implement their functionality. Add a bit of TIOCPKT handling code to handle programs messing with term settings better. * Ask to set the root password at the end of an install. * Remove a few unneeded comments. * Sprinkle some touchwin() calls here and there to make the output cleaner. They shouldn't really be needed, but even normal usage (no syslog messages) even left the screen messy sometimes. * Change some messages around that were apparently swapped by accident and thus caused confusion.
Revision 1.22 / (download) - annotate - [select for diffs], Wed Sep 27 12:42:04 2000 UTC (12 years, 7 months ago) by fvdl
Changes since 1.21: +11 -1 lines
Diff to previous 1.21 (colored)
Move md_enable_swap to disks.c, rename it set_swap, and handle both enabling and disabling swap. Enabling swap is currently only done by the i386 port on systems with <= 8M of physical memory. If a user re-enters the install procedure through the main menu, and the target disk has an active swap partition, try to disable it, warning the user that this might lead to 'out of swap' problems, making a restart necessary. This should not happen very often. Partly based on comments by Simon Burge.
Revision 1.21 / (download) - annotate - [select for diffs], Wed Sep 20 21:21:14 2000 UTC (12 years, 8 months ago) by hubertf
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)
Doesn't it make you nervous to see a "lastchance" warning, telling you that "your hard disk" is about to get nuked, and you are no longer sure which of your ten disks you told sysinst to wipe? Change this to tell you: ``Ok, we are now ready to install NetBSD on your hard disk (wd0). Nothing ...''
Revision 1.20 / (download) - annotate - [select for diffs], Tue Aug 15 01:08:00 2000 UTC (12 years, 9 months ago) by hubertf
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored)
* Add timezone-setting menu to sysinst, offering all timezones from (/mnt)/usr/share/zoneinfo in a listbox, and setting (/mnt)/etc/localtime accordingly. * Adjust for the needed menuc change un run.c's log_flip() and script_flip() functions. Related PRs: 5777 sysinst does not offer to tweak /etc/localtime 8099 changing the default time zone is non-obvious 9910 sysinst doesn't ask about setting timezone
Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 22 06:57:00 1999 UTC (13 years, 11 months ago) by cgd
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl, dynamic-messages-base, dynamic-messages, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-5
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)
* make selection of 'none' for installation media type return the user to the toplevel menu, as promised by the media selection menu, without first going through an "installation is aborted" menu. * when something causes the installation to fail (e.g. missing set or failure to extract a set's contents), don't go through N menus (missing/failed/aborted, sets didn't install/aborted, sanity check failed/aborted) before getting back to the top level. The user only needs to be told once that their life sucks.
Revision 1.18 / (download) - annotate - [select for diffs], Tue Jun 22 00:57:06 1999 UTC (13 years, 11 months ago) by cgd
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)
mark all calls to write 'CL' (the screen-clear escape sequence) to the screen as XXX. Where they were not followed by wclear(stdscr), add wclear(stdscr). Somebody was let out without adult supervision. If i were more adventurous, i'd remove the bits that output 'CL', but i'm not gonna go there right now.
Revision 1.17 / (download) - annotate - [select for diffs], Sun Jun 20 06:08:14 1999 UTC (13 years, 11 months ago) by cgd
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)
copyright notice typo fixups, as noticed in PR#7248. This software was developed, not develooped.
Revision 1.16 / (download) - annotate - [select for diffs], Tue Apr 13 20:17:47 1999 UTC (14 years, 1 month ago) by bouyer
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)
Main change: add a cleanup_dist() function in util.c which will do the needed cleanups before extracting a set. Should'nt do anything for an install, as the filesystem shouldn't contain files that need to be removed. cleanup_dist() is called before extract_file() for each set (the set name is passed as parameter). It will open a file /dist/<set name>_obsolete if it exists. This file should contain a list of files (absolutes pathnames) that needs to be removed. cleanup_dist() will lstat() each file to determine if it's there and if it's a directory or not. It will then unlink() entries that are not directories and then rmdir() directories. If a directory is not empty (it should now if the list of files is correct) it will be renamed to <directory.old> and the user will be warned. Other changes: - move prototype of target_prefix() in defs.h, don't maintain a copy of it in each file. - in install.c, after MSG_disksetupdone, do a wclear(stdscr) (display was clobbered after it). - kill MSG_openmsgbuf, it's not used anywhere - after MSG_disksetupdone in upgrade, don't call MENU_ok, do it the same way as in install. - add wclear(stdscr);/wrefresh(stdscr); before calling MENU_distset (another display problem ...) - While I'm there, move ask_verbose_dist() before MENU_distmedium. This way, if all go well the user can go away one ftp starts and come back once sets are extracted.
Revision 1.15 / (download) - annotate - [select for diffs], Sun Apr 11 22:40:20 1999 UTC (14 years, 1 month ago) by bouyer
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)
- Add 2 functions in label.c, getpartoff()/getpartsize() used to let the user enter partitions offet and size. The user can chose unit independantly of the unit used for display ('M'/'c'/'s'). These functions do the proper bound checks and alignement/roudups. Used in the edfspart menu and i386 md_make_bsd_partitions() (other ports should do the change as well). - now that getpartsize() does the rigth thing, kill the swapadj hack (which was buggy anyway). - in i386 md_make_bsd_partitions(), don't propose defaults that don't fit on the disk. If the disk is too small, fallback to custom instead. - fix a bug in mbr.c, where the partition flags would not have always been reset. sysinst created me a MBR with 2 active partition. The boot code doesn't like it :) - added a message for eventual mount failures. - killed donewfs and extracting messages, as we run the commands in a subwindow these messages just flashed on the screen. - Changes a few exit(1) to return(1), to give the user a second chance. - added msg_clear() or wclear(stdscr) in a place or two, to make display a bit nicer. - in run_cmd(), if the command succeeded, don't wait for the user to press enter.
Revision 1.14 / (download) - annotate - [select for diffs], Fri Apr 9 10:24:38 1999 UTC (14 years, 1 month ago) by bouyer
Changes since 1.13: +20 -9 lines
Diff to previous 1.13 (colored)
Some fixes for the do_install() function: - Make all the functions called from do_install() return an error code, so that we can abort install if something went wrong. - Add a 'errstr' argument to run_prog(), which if not NULL is displayed with msg_printf() and followed by process_menu(MENU_ok) if the command fail. Used to warn the user that the current action is aborted. - in a few places use msg_display() or msg_printf() rather than printf. It seems that stdout/stderr are not always pointing to the active curses window. - garbage-collecd unused messages, add a few new one (error handling). XXX only tested on i386. Other md parts should be tested as well.
Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 21 08:02:17 1999 UTC (14 years, 4 months ago) by garbled
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.12: +6 -7 lines
Diff to previous 1.12 (colored)
This change includes the following: Scripting and logging functionality for sysinst. Child programs are run in a "display window" so you can actually see what they did before the screen flashes back and you loose it all. Lots of curses fixups. Removed nasty endwins that mangled the tty upon rentry. Change the yes/no box to accept Y or N, and not require cursor motion to decide one or the other. Perform curses redraws when doing things that could cause the kernel to spew printfs onto your screen.
Revision 1.12 / (download) - annotate - [select for diffs], Sat Jun 20 13:05:48 1998 UTC (14 years, 11 months ago) by mrg
Changes since 1.11: +21 -20 lines
Diff to previous 1.11 (colored)
Revision 1.11 / (download) - annotate - [select for diffs], Fri May 15 15:12:30 1998 UTC (15 years ago) by fvdl
Changes since 1.10: +3 -1 lines
Diff to previous 1.10 (colored)
Add MD cleanup function to do some thingd once the install is done. Only implemented for the i386; behaviour for other ports is unchanged. For the i386, make this function remove some extraneous files in /, and frob rc.conf to have rc_configured=YES. The defaults are reasonable, and it saves the user having to set TERM and mount filesystems by hand in order to be able to edit /etc/rc.conf (XXX not very clean, but it's a workaround to be more user-friendly for 1.3.2) Also adapt a few messages slightly so they apply to both situations.
Revision 1.10 / (download) - annotate - [select for diffs], Thu Dec 4 11:27:59 1997 UTC (15 years, 5 months ago) by jonathan
Changes since 1.9: +5 -2 lines
Diff to previous 1.9 (colored)
Add check for overlapping partitions: * Add `partinfo' type, for description of a single partition, so we can pass labels by reference.. * Add label.c with label initialization, naive overlap-check code, and a UI entrypoint edit_and_check_label() which iterates through checking a label for overlaps, and if any, giving the user the choice of fixing them or punting back to the main menu. * Change return type of md_make_bsd_partitions from void to int. Return 0 if the partition has problems (or the user gave up on it) and 1 if the partition is completed and looks OK. * Change install() to check return value of md_make_bsd_partitions(). If it returns zero, print an `abort' message and return to main menu. * Add label.c to all ports' Makefile. MD code tested on pmax and cut-and-pasted to other ports.
Revision 1.9 / (download) - annotate - [select for diffs], Sun Nov 9 12:47:08 1997 UTC (15 years, 6 months ago) by jonathan
Changes since 1.8: +8 -1 lines
Diff to previous 1.8 (colored)
Fix target prefixing to handle both root-in-swap (traditional miniroot) and current-root-is-target-root (pmax diskimage. * Add code to check disk names (e.g., "sd0") against the current kern.root_device sysctl (whic does *not* include a partition). * Add new function must_mount_root(): check to see if it's the same device as the root. If not, the current and target root partitions cannot overlap. If they do, do statfs() on "/", and return 1 iff we get back "root_device" as the mounted-on filesystem, otherwise zero. * Call must_mount_root() right after the user specifies a disk as install/upgrade target, and if it returns 1, print a message asking them to mount root, and abort. * Use statfs("/") mounted_from string to check if a disk partition (e.g., "sd0a") matches the current root.
Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 5 07:28:26 1997 UTC (15 years, 6 months ago) by jonathan
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)
* Add code to run `test(1)' on target-root pathnames. * Change find_disks: after mouting target root, check for /etc/fstab in target, and abort upgrade if not found. * Change upgrade to check if the target root has /etc.old before renaming the target /etc -> /etc.old. If found, abort. (may indicates a failed upgrade.) * Add save_etc(). saves target /etc as /etc.old, then copies back config files we might want during upgrade, in case target is current root. * Fix logic that fscks and mounts disks. Use subroutines to fsck with a warning message and ok() on continue. Same for doing mounts. * Fix bug in extract_dist(). Do NOT do target prefixing on the dist_dir, since we didn't do target prefixing when mounting it. (At least, NFS does't.) * Add function to sanity-check target root. Call after upgrade/install is done. * Change MSG_realdir to print the strerror() of any errors. Change target_chdir() to check if chdir() returns -1 and return errno. * Make sure /dev exists before cd'ing there and running MAKEDEV. * Use target_fopen() and fprintf() to write network state to disk, to avoid inadvertent shell escapes. * Fix silly typo in append_to_target_file. (maybe add shell quotes?)
Revision 1.7 / (download) - annotate - [select for diffs], Mon Nov 3 06:18:08 1997 UTC (15 years, 6 months ago) by jonathan
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)
Make install() use msgc, not inline text, for the `disks done' text. Expand that text, making clearer what sysinst is done, what kind of errors to double-check for before proceeding, and what we're about to do next.
Revision 1.6 / (download) - annotate - [select for diffs], Sun Nov 2 09:41:59 1997 UTC (15 years, 6 months ago) by jonathan
Changes since 1.5: +3 -32 lines
Diff to previous 1.5 (colored)
Snip out common code that fetches and unpack setss in both upgrade() and install(). Put it into a new function ``get_and_unpack_sets()''. Fixes a typo (/sbin/umoount) in the upgrade() version.
Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 20 06:13:29 1997 UTC (15 years, 7 months ago) by phil
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.4: +8 -5 lines
Diff to previous 1.4 (colored)
Floppy and cdrom distribution load. Other tweeks to improve installation and upgrade.
Revision 1.4 / (download) - annotate - [select for diffs], Fri Oct 17 21:10:39 1997 UTC (15 years, 7 months ago) by phil
Changes since 1.3: +5 -2 lines
Diff to previous 1.3 (colored)
Tweeks to make install nicer.
Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 7 04:01:31 1997 UTC (15 years, 7 months ago) by phil
Changes since 1.2: +8 -2 lines
Diff to previous 1.2 (colored)
Update to current state.
Revision 1.2 / (download) - annotate - [select for diffs], Sat Sep 27 00:09:23 1997 UTC (15 years, 8 months ago) by phil
Changes since 1.1: +19 -9 lines
Diff to previous 1.1 (colored)
Sync to current state. (detect ftp error, clean up directories ...)
Revision 1.1 / (download) - annotate - [select for diffs], Fri Sep 26 23:02:54 1997 UTC (15 years, 8 months ago) by phil
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.