The NetBSD Project

CVS log for src/distrib/utils/sysinst/Attic/upgrade.c

[BACK] Up to [cvs.NetBSD.org] / src / distrib / utils / sysinst

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.53.6.1, Tue Aug 19 23:45:46 2014 UTC (2 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.53: +1 -1 lines
FILE REMOVED

Rebase to HEAD as of a few days ago.

Revision 1.53.18.1, Sun Aug 10 06:48:49 2014 UTC (3 weeks, 3 days ago) by tls
Branch: tls-earlyentropy
Changes since 1.53: +1 -1 lines
FILE REMOVED

Rebase.

Revision 1.54, Sat Jul 26 19:30:39 2014 UTC (5 weeks, 3 days ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, HEAD
Changes since 1.53: +1 -1 lines
FILE REMOVED

Move sysinst sources to usr.sbin.

This commit only physically moves the sources - there are no other
changes, to maximize the probability that this will be treated as a
rename if we ever do manage to migrate away from CVS.

Moving sysinst has been discussed on and off for years and has two
goals: making it easier to work on sysinst, and also making sysinst
available on running systems for use installing chroots and VM images
and other such things. None of the latter is possible yet, but as they
say, one thing at a time.

Doing this now was approved in an impromptu fashion by mrg, riz,
riastradh, me, and groo.

Revision 1.51.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:02:51 2012 UTC (2 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.51: +34 -16 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

sync with head

Revision 1.53 / (download) - annotate - [select for diffs], Sun Jan 8 02:32:00 2012 UTC (2 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy
Changes since 1.52: +34 -16 lines
Diff to previous 1.52 (colored)

work for both X11R6 and X11R7

Revision 1.52 / (download) - annotate - [select for diffs], Sat Jan 7 18:54:31 2012 UTC (2 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.51: +9 -9 lines
Diff to previous 1.51 (colored)

only deal with X11R7 now.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Apr 4 08:30:14 2011 UTC (3 years, 5 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache
Changes since 1.50: +7 -11 lines
Diff to previous 1.50 (colored)

Remove the advertisement clause from files copyrighted by Piermont Information
Systems, with the consent of the copyright owner, Perry E. Metzger.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Sep 19 14:57:27 2009 UTC (4 years, 11 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.49: +9 -1 lines
Diff to previous 1.49 (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.49.20.1, Sun Oct 5 20:11:10 2008 UTC (5 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.49: +1 -1 lines
FILE REMOVED

Sync with HEAD.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Apr 5 16:55:05 2006 UTC (8 years, 5 months ago) by garbled
Branch: MAIN
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-2-RELEASE, netbsd-5-2-1-RELEASE, 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-4-RELEASE, netbsd-5-1-3-RELEASE, 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.48: +4 -1 lines
Diff to previous 1.48 (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.44.2.4 / (download) - annotate - [select for diffs], Thu Jun 17 09:21:20 2004 UTC (10 years, 2 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.44.2.3: +1 -4 lines
Diff to previous 1.44.2.3 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored)

Pull up revision 1.47 (requested by dsl in ticket #493):
Kill etc_saved and the prototype for save_etc()

Revision 1.44.2.3 / (download) - annotate - [select for diffs], Thu Jun 17 09:17:34 2004 UTC (10 years, 2 months ago) by tron
Branch: netbsd-2-0
Changes since 1.44.2.2: +0 -119 lines
Diff to previous 1.44.2.2 (colored) to branchpoint 1.44 (colored)

Pull up revision 1.46 (requested by dsl in ticket #489):
Remove all the code (mostly already under #if 0) that played around
with etc.old

Revision 1.44.2.2 / (download) - annotate - [select for diffs], Mon Jun 7 10:20:45 2004 UTC (10 years, 2 months ago) by tron
Branch: netbsd-2-0
Changes since 1.44.2.1: +4 -10 lines
Diff to previous 1.44.2.1 (colored) to branchpoint 1.44 (colored)

Pull up revision 1.48 (requested by dsl in ticket #453):
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.48 / (download) - annotate - [select for diffs], Sat Jun 5 21:19:00 2004 UTC (10 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.47: +4 -10 lines
Diff to previous 1.47 (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.47 / (download) - annotate - [select for diffs], Sat May 22 17:38:26 2004 UTC (10 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.46: +1 -4 lines
Diff to previous 1.46 (colored)

Kill etc_saved and the prototype for save_etc()

Revision 1.46 / (download) - annotate - [select for diffs], Sat May 22 17:31:37 2004 UTC (10 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.45: +1 -120 lines
Diff to previous 1.45 (colored)

Remove all the code (mostly already under #if 0) that played around
with etc.old

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Sat May 22 16:24:16 2004 UTC (10 years, 3 months ago) by he
Branch: netbsd-2-0
Changes since 1.44: +11 -5 lines
Diff to previous 1.44 (colored)

Pull up revision 1.45 (requested by dsl in ticket #359):
  Remove code to do with etc.old, instead install etc.tgz
  into /.sysinst and use /etc/postinstall to merge.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Apr 18 21:34:56 2004 UTC (10 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.44: +11 -5 lines
Diff to previous 1.44 (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.44 / (download) - annotate - [select for diffs], Sun Dec 28 05:30:47 2003 UTC (10 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.43: +13 -13 lines
Diff to previous 1.43 (colored)

Add an argument to cp_within_target that indicates if the file is optional
or really should be there. Use that for files that are not necessarily
present.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Nov 30 14:36:44 2003 UTC (10 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.42: +5 -12 lines
Diff to previous 1.42 (colored)

- Change enum for partition numbers from [A..Z] to PART_[A..P] (16 is enough)
- Rename run_prog() to run_program() and remove the 'errmsg' argument (almost
  never used).
- Be consistent about #define<space> in defs.h
- Allow BSDFFS partitions to be FFSv1 or FFSv2 (fixes PR install/23547)
- i386: install correct bootblocks for root filesystem type.
- Do 'fsck -p' before all mounts (but never a full fsck), rename fsck_xxx()
  to mount_xxx() and remove some wrapper functions.
- Allow root to be an APPLEUFS partition - and allow them to be newfsed,
  should fix PR install/23198
- Redo fstab processing for upgrade to avoid large static data items and
  memory leaks.  Change walk() to abort on user defined error.
  (the fstab stuff really needs more work though...)
- i386: 'Warp' cursor to alternate option when selecting console/bootblocks,
  should fix PR port-i386/23546.
- Allow MENU_ok and MENU_yesno to take user defined title.
- Ensure that mountpoint not defined for swap (and similar issues) when
  editing netbsd label.
- Tweaks to error handling in run_program(), allow user to say that errors
  are expected or that the display shouldn't be cleared before returning.
- Remove some old code that has been festering under #if 0

Revision 1.42 / (download) - annotate - [select for diffs], Sun Oct 19 20:17:32 2003 UTC (10 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.41: +14 -11 lines
Diff to previous 1.41 (colored)

Checkpoint a load of changes - seems to work ok still.
- rework run_prog() so that the program name (etc) is usually displayed if
  the program generates any output, or terminates with an error.
  Allow arguments to included in single quotes.
  Try to collect console output so it doesn't interfere with curses.
- Add a '*' to the cylinder count if non-integral number of cylinders
  (on disklabel editor)
- Only show partition type for unused partitions.
- Show size including unused space on '+' partition, remove a..z since
  the don't relate to partition IDs (netbsd partition sizes)
- Fix deleting of 'user' partitions - killed size of next ptn.
- Don't default a swap partition is the disk already has one.
- Fix deleting of extended MBR partitions - changed size of ptn 2.
- Show error message if user tries something illegal in mbr editor.
- Default to old diskname (actually disk type - dunno why!)
- Use MI enable_rc_conf() to set RC_CONFIGURED=YES, use a single sed
  command instead of a raft of code playing with files etc.
- Float some menus to just below header text, saves counting and lets
  language variants have different height headers (use y=-1)
- Track whether anything is mounted on /mnt2 better.
- Put more texts into message file.
- Change english prose texts to be more correct.
- Stop french and polish versions core dumping if ptn start/size changed.
- Fix processing logic for saving /etc (action is still borked)
- Do tail-end setup if any sets (eg X) can't be found (but not if you give
  in (yet)).

Revision 1.41 / (download) - annotate - [select for diffs], Sat Sep 27 10:47:17 2003 UTC (10 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.40: +1 -17 lines
Diff to previous 1.40 (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.40 / (download) - annotate - [select for diffs], Fri Jul 25 08:26:22 2003 UTC (11 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.39: +5 -3 lines
Diff to previous 1.39 (colored)

Sprinkle a load of consts, and change a few variable names.
Now compiles with WARNS=3.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jul 22 12:18:39 2003 UTC (11 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.38: +3 -1 lines
Diff to previous 1.38 (colored)

Ask for sets when doing 'install more sets'

Revision 1.38 / (download) - annotate - [select for diffs], Fri Jul 18 09:46:11 2003 UTC (11 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.37: +31 -6 lines
Diff to previous 1.37 (colored)

Copy /etc.old back to /etc if it was saved, but we didn't actually
install the ETC set.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Jul 8 16:12:18 2003 UTC (11 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.36: +4 -3 lines
Diff to previous 1.36 (colored)

Only save and merge /etc if the /etc set is being installed.
Actually this needs changing to use /usr/sbin/etcupdate (or similar),
but the script needs fixing first.
Might be better for sysinst to have its own copy, gets to be fun to run
because you have to pull the commands from the target FS.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jul 7 12:30:22 2003 UTC (11 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.35: +3 -1 lines
Diff to previous 1.35 (colored)

Another pass of the rototiller. Mainly:
1) New MBR editor
2) Hierarchic timezone menu

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jun 27 22:20:16 2003 UTC (11 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.34: +3 -5 lines
Diff to previous 1.34 (colored)

Add run-time selection of installation language.
Make 'doingwhat' an argument to find_disks() instead of a global.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jun 16 19:42:14 2003 UTC (11 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.33: +7 -7 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], Tue Jun 3 11:54:49 2003 UTC (11 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.32: +7 -7 lines
Diff to previous 1.32 (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.32 / (download) - annotate - [select for diffs], Wed Nov 13 00:43:09 2002 UTC (11 years, 9 months ago) by chris
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

pleasemountroot has 4 %s's in it.  Note that the fr translation needs
updating to 4.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jan 14 02:38:15 2001 UTC (13 years, 7 months ago) by mrg
Branch: MAIN
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.30: +2 -1 lines
Diff to previous 1.30 (colored)

extend sysinst disk handling, some general clean ups, better /etc support
and some sparc64 fixes.  details:

- new scripting_{,v}fprintf() that also write to the script log (if open).
- support of creation of LFS filesystems
- standard installs now allow one to choose which file systems to create,
out of the list of /usr, /var, /home, MFS /tmp, and swap.  a / is always
created, but the rest all optional. [*]
- new disklabel method: use existing.  this requires one to fill in the
mount points (and having at least a "/" is enforced).
- preservation of existing filesystems (at install) is supported.
- rewrote most of make_fstab(): the entire thing is generated from the
bsdlabel now, rather than hard coding / to 'a' and swap to 'b'.  create
MFS /tmp if requested.
- if IPv6 support isn't present, don't display any ipv6 messages.
- better rc.conf support
- sparc & sparc64 default to "cylinders" now.
- choosing "standard" instead of "standard with X" de-selects the X pkgs
by default.
- sparc64: don't install bootblocks until we have a complete system, avoids
booting with no /dev/console.
- sparc64: bump STDNEEDMB, it is way low.


[*] i have added default values for DEFVARSIZE & DEFUSRSIZE (this is used
only if /usr and /home are selected) to each port, based on STDNEEDMB.  as
such, my guesses might be wrong so port maintainers should look at these.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jan 7 13:07:57 2001 UTC (13 years, 7 months ago) by jdc
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Use wrefresh(curscr) instead of clearok().
Suggested by Thomas Dickey.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 31 13:08:06 2000 UTC (13 years, 8 months ago) by jdc
Branch: MAIN
Changes since 1.28: +5 -3 lines
Diff to previous 1.28 (colored)

Be paranoid and do a clearok() before we do a refresh().

Revision 1.28 / (download) - annotate - [select for diffs], Fri Dec 22 10:12:13 2000 UTC (13 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.27: +6 -6 lines
Diff to previous 1.27 (colored)

de-__P()-ify

Revision 1.27 / (download) - annotate - [select for diffs], Thu Dec 21 21:42:03 2000 UTC (13 years, 8 months ago) by jdc
Branch: MAIN
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (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.26 / (download) - annotate - [select for diffs], Mon Dec 18 09:18:46 2000 UTC (13 years, 8 months ago) by hubertf
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Do not tell the user we've newfs'd his disks when upgrading.
May safe him a heart attack or two.

Fixes PR 9655 and some others.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Dec 4 22:47:02 2000 UTC (13 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Fix typos in comments.

Revision 1.20.10.3 / (download) - annotate - [select for diffs], Wed Oct 18 17:51:16 2000 UTC (13 years, 10 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.20.10.2: +6 -2 lines
Diff to previous 1.20.10.2 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Pullup (sync with HEAD not including xmisc set changes) [fvdl]:
==
Don't call test(1) to determine the existence/type of files, that's
rather over the top. Not doing this also means that test(1) can
be omitted from the ramdisks (for scripts it's not needed, because it
is built in to sh(1)).
==
On the i386, enable swapspace as soon as the disklabel has been written,
to play nice with low-memory systems.

Add a md_pre_update() hook, to do MD things before an upgrade operation.
On the i386, use it to enable swap.
==
Remove outdated comment.
==
Add a definition for md_init(), an MD function to initialize whatever
needs to be initialized before sysinst starts processing menus.
Call it from main().
==
[i386 only]
* In md_init, determine what kind of bootfloppy we are (either
  by checking uname, or the BOOTMODEL environment var), and set
  the kernel setname accordingly for some bootmodels (tiny and laptop),
  to install GENERIC_TINY and GENERIC_LAPTOP respectively. There's
  no sense in installing plain GENERIC, especially on "tiny" systems;
  it may not even make it far enough to add swapspace on 4M machines.
* Make sure to always install bootcode into the MBR (unless the user
  explicitly tells us not to). Should fix PR#8887, PR#9093, PR#9999
==
[non-i386 md.c files]
Add empty stubs for md_init().
==
[i386]
Fix compare logic error in check for installation of seperate kernel
sets.

Add code to deal with moving a.out libraries to /emul/aout for
upgrading.
==
[i386]
Add 2 defines for a.out library move code.
==
Externalize concat_paths, it is used by arch/i386/md.c now. Add
target_realpath prototype.
==
Add message for a.out library move failure case.
==
Add target_realpath(), a function that expands a pathname on the
"target" filesystem, i.e. a filesystem that will probably be
mounted on /mnt during install/upgrade, but will be / when
the system is booted. Needed to deal with absolute symbolic links.
This function is (unfortunately) a verbatim copy of realpath() from libc,
with prefix handling added.
==
Don't abort when trying to remove a directory marked as obsolete that does
not exist.
==
Create the disktab file directly, no need to waste precious inodes/space
in ramdisks with disktab.preinstall.
==
* 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.
==
Improve labelling a bit, by allowing some shortcuts to start partitions
where another one ends, and ending partitions where another one start,
or at the start of the disk / until the end of the disk.
==
Stress that if a match is found between a disk device and a BIOS disk,
you really should not be changing the geometry values, unless they
look totally ridiculous due to some BIOS bug.

Disable manual entering of initial partition label values when doing
a custom label. The step was redundant. Just go to the label edit
directly, leaving everything but the c and d partitions empty.
==
Adapt for format change in mbr editing header; it now always displays
the whole partition, and the total disksize.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Oct 11 23:47:57 2000 UTC (13 years, 10 months ago) by fvdl
Branch: MAIN
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (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.23 / (download) - annotate - [select for diffs], Tue Sep 26 23:12:44 2000 UTC (13 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.22: +4 -1 lines
Diff to previous 1.22 (colored)

On the i386, enable swapspace as soon as the disklabel has been written,
to play nice with low-memory systems.

Add a md_pre_update() hook, to do MD things before an upgrade operation.
On the i386, use it to enable swap.

Revision 1.20.10.2 / (download) - annotate - [select for diffs], Mon Sep 11 22:13:12 2000 UTC (13 years, 11 months ago) by hubertf
Branch: netbsd-1-5
Changes since 1.20.10.1: +8 -6 lines
Diff to previous 1.20.10.1 (colored) to branchpoint 1.20 (colored)

Pull up rev. 1.22 to netbsd-1-5 branch, OK'd by thorpej:
 > Move aside X link before /etc, and move the X link back if moving /etc fails.
 > Else if moving X fails, the system will end with no /etc.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Sep 9 00:21:36 2000 UTC (13 years, 11 months ago) by hubertf
Branch: MAIN
Changes since 1.21: +8 -6 lines
Diff to previous 1.21 (colored)

Move aside X link before /etc, and move the X link back if moving /etc fails.
Else if moving X fails, the system will end with no /etc.

Revision 1.20.10.1 / (download) - annotate - [select for diffs], Fri Sep 8 23:57:20 2000 UTC (13 years, 11 months ago) by hubertf
Branch: netbsd-1-5
Changes since 1.20: +52 -1 lines
Diff to previous 1.20 (colored)

Pull up to netbsd-1-5 branch, OK'd by thorpej:

Revisions:
 > cvs rdiff -r1.55 -r1.56 basesrc/distrib/utils/sysinst/defs.h
 > cvs rdiff -r1.65 -r1.66 basesrc/distrib/utils/sysinst/msg.mi.en
 > cvs rdiff -r1.22 -r1.23 basesrc/distrib/utils/sysinst/target.c
 > cvs rdiff -r1.20 -r1.21 basesrc/distrib/utils/sysinst/upgrade.c

Log message:
 > When upgrading and /usr/X11R6/bin/X is a symlink, move it aside (X.old)
 > before extracting sets, and move it back afterwards, to save the information
 > which X server to use.
 >
 > Adresses PR 10935 by Dan McMahill <dmcmahill@netbsd.org>

Revision 1.21 / (download) - annotate - [select for diffs], Fri Sep 8 02:50:44 2000 UTC (13 years, 11 months ago) by hubertf
Branch: MAIN
Changes since 1.20: +52 -1 lines
Diff to previous 1.20 (colored)

When upgrading and /usr/X11R6/bin/X is a symlink, move it aside (X.old)
before extracting sets, and move it back afterwards, to save the information
which X server to use.

Adresses PR 10935 by Dan McMahill <dmcmahill@netbsd.org>

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Thu Jun 24 23:02:02 1999 UTC (15 years, 2 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.16.2.1: +9 -7 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

pull up rev(s) 1.18-1.20 from trunk. (cgd)

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jun 22 06:57:01 1999 UTC (15 years, 2 months ago) by cgd
Branch: MAIN
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.19: +5 -4 lines
Diff to previous 1.19 (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.19 / (download) - annotate - [select for diffs], Tue Jun 22 00:57:06 1999 UTC (15 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.18: +4 -3 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Sun Jun 20 06:08:15 1999 UTC (15 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

copyright notice typo fixups, as noticed in PR#7248.  This software
was developed, not develooped.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Mon Apr 19 15:19:28 1999 UTC (15 years, 4 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE
Changes since 1.16: +5 -2 lines
Diff to previous 1.16 (colored)

sync with head. yes, this is an unorthodox pullup.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Apr 13 20:17:48 1999 UTC (15 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.16: +5 -2 lines
Diff to previous 1.16 (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.4.2.8 / (download) - annotate - [select for diffs], Mon Nov 23 07:19:59 1998 UTC (15 years, 9 months ago) by cgd
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Changes since 1.4.2.7: +2 -1 lines
Diff to previous 1.4.2.7 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

pull up rev 1.16 from trunk (simonb)

Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 16 02:28:13 1998 UTC (15 years, 9 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

Add a missing "doingwhat" reason for a re-install of sets.

NOTE:  msg.mi.fr needs a French to Englist translation marked by the XXX
comment.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jun 20 13:05:51 1998 UTC (16 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.14: +30 -25 lines
Diff to previous 1.14 (colored)

KNF.

Revision 1.4.2.7 / (download) - annotate - [select for diffs], Fri May 29 20:48:52 1998 UTC (16 years, 3 months ago) by mycroft
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH002
Changes since 1.4.2.6: +8 -5 lines
Diff to previous 1.4.2.6 (colored) to branchpoint 1.4 (colored)

Pull up the very last patch from fvdl.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 20 00:37:17 1998 UTC (16 years, 6 months ago) by jonathan
Branch: MAIN
Changes since 1.13: +8 -5 lines
Diff to previous 1.13 (colored)

Remove comment references to /mnt: some ports support upgrading while
running from the target root.

Revision 1.4.2.6 / (download) - annotate - [select for diffs], Sat Dec 20 21:30:29 1997 UTC (16 years, 8 months ago) by perry
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH001
Changes since 1.4.2.5: +3 -1 lines
Diff to previous 1.4.2.5 (colored) to branchpoint 1.4 (colored)

pullup from trunk (fvdl)

Revision 1.13 / (download) - annotate - [select for diffs], Fri Dec 19 00:57:56 1997 UTC (16 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored)

Be sure to clear the screen after the fscks in the re-install option.

Revision 1.4.2.5 / (download) - annotate - [select for diffs], Fri Dec 5 14:12:51 1997 UTC (16 years, 9 months ago) by jonathan
Branch: netbsd-1-3
Changes since 1.4.2.4: +38 -2 lines
Diff to previous 1.4.2.4 (colored) to branchpoint 1.4 (colored)

Pull up changes with commit message starting
  >* Add main menu option to reinstall sets or install additional sets.
  >  (like upgrade but without trying to save etc.
to 1.3 release branch:
    defs.h:1.25
    disks.c:1.16
    label.c:1.2
    menus.mi.eng:1.17
    msg.mi.eng:1.24
    net.c:1.24
    target.c:1.14
    upgrade.c:1.12
    util.c:1.22

Revision 1.12 / (download) - annotate - [select for diffs], Fri Dec 5 14:01:10 1997 UTC (16 years, 9 months ago) by jonathan
Branch: MAIN
Changes since 1.11: +38 -2 lines
Diff to previous 1.11 (colored)

* Add main menu option to reinstall sets or install additional sets.
  (like upgrade but without trying to save etc.

* Add option to setls0urce menu to look in an already-mounted (local)
  directory.  Change `local fs' option to say umounted local fs.

* Change extract_file() to check that a tarball actually exists
  and give an explicit non-curses warning if it doesn't. (see above.)

* GNU tar returns a successful status if its gunzip child dies.
  Add short sleep() after tar commands in case of undetected errors.

* Change set-source selection code (except FTP, floppy) to check
  that the mandatory set files (base.tgz, etc.tgz) exist
  in the selected directory.  If they don't, warn the user and
  prompt the user to  change the selected directory.
  Give the user the option to explicitly continue even if
  base.tgz or etc.tgz not found, just in case.

* Change extract_file() to keep count of set unpacks that succeeded
  or failed. (Unreliable, given the broken return status of gnu tar.)
  Warn the user if there are errors and abort the installation/upgrade
  if we find any.  Does at least catch Ctrl-C interrupts of unpacking.

* Make unwind_mounts() signal-safe.

* Sense of target_verify_* is broken. Replace with predicates that
  return 1 iff the file or directory exists.

* Fix upgrade tests for existing etc.old (see above) before saving
  target /etc as /etc.old.

* Other detail fixes.

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Mon Nov 10 19:23:27 1997 UTC (16 years, 9 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-BETA
Changes since 1.4.2.3: +27 -3 lines
Diff to previous 1.4.2.3 (colored) to branchpoint 1.4 (colored)

Sync w/ trunk.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Nov 9 12:47:10 1997 UTC (16 years, 9 months ago) by jonathan
Branch: MAIN
Changes since 1.10: +8 -1 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Thu Nov 6 09:02:36 1997 UTC (16 years, 10 months ago) by jonathan
Branch: MAIN
Changes since 1.9: +20 -3 lines
Diff to previous 1.9 (colored)

* Add merge_etc() in upgrade.c. Copies /etc.old/fstab to /etc/fstab
 as last step of upgrade, so /etc/fstab exists after reboot.

*  util.c: correct sense of test in sanity-check helper check_for().
   Change variable name to `found' for readability.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Thu Nov 6 00:50:25 1997 UTC (16 years, 10 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.4.2.2: +75 -4 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored)

Pull rev 1.7, 1.8 and 1.9 up from trunk (jonathan)

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 5 07:28:37 1997 UTC (16 years, 10 months ago) by jonathan
Branch: MAIN
Changes since 1.8: +73 -6 lines
Diff to previous 1.8 (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.8 / (download) - annotate - [select for diffs], Mon Nov 3 09:47:03 1997 UTC (16 years, 10 months ago) by jonathan
Branch: MAIN
Changes since 1.7: +5 -1 lines
Diff to previous 1.7 (colored)

* Get current root device via sysctl().  Use it in target prefixing code.
  Add more #ifdef DEBUG to target-prefixing.
* Fix niggle in creating a new resolv.conf: ctime()'s result ends in '\n',
  so don't include one after the %s for the timestamp.
* Change upgrade: add the same ``disk stuff done'' message used in install,
  so the user knows what's going to happen.
  (is a more tailored message useful?)

Revision 1.7 / (download) - annotate - [select for diffs], Sun Nov 2 23:43:14 1997 UTC (16 years, 10 months ago) by jonathan
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Add more target_wrapper functions, to do
  * renames of files from one pathname within the  target to another
    (e.g., mv_within_target_or_die("/etc", "/etc.old");
  *  check to see  if a partition name like "sd0a" is the current root
  *  Duplicate a file from the current root into the target root
     (for copying /netbsd from RAMdisk into the  target).
     A no-op if the root is the install target).
Start using these where appropriate.

Change net.c to avoid losing any information when updating network
config files: where possible, do appends to files that might have more
info than we got from the user (e.g., /etc/hosts.)

Where possible, add comment saying file was created/modified by sysinst.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Sun Nov 2 20:56:38 1997 UTC (16 years, 10 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.4.2.1: +2 -32 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

Pull rev 1.6 up from trunk (jonathan)

Revision 1.6 / (download) - annotate - [select for diffs], Sun Nov 2 09:42:00 1997 UTC (16 years, 10 months ago) by jonathan
Branch: MAIN
Changes since 1.5: +2 -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.4.2.1 / (download) - annotate - [select for diffs], Mon Oct 27 19:36:28 1997 UTC (16 years, 10 months ago) by thorpej
Branch: netbsd-1-3
Changes since 1.4: +4 -1 lines
Diff to previous 1.4 (colored)

Sync w/ trunk.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 22 15:29:12 1997 UTC (16 years, 10 months ago) by phil
Branch: MAIN
Changes since 1.4: +4 -1 lines
Diff to previous 1.4 (colored)

Recover more bits lost in my earlier blunder.  Get update working.
Other minor tweeks.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Oct 20 06:13:39 1997 UTC (16 years, 10 months ago) by phil
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.3: +26 -5 lines
Diff to previous 1.3 (colored)

Floppy and cdrom distribution load. Other tweeks to improve installation
and upgrade.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 15 04:36:09 1997 UTC (16 years, 10 months ago) by phil
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

Update to current state.  Install and upgrade nearly finished.  Disk
discovery and geometry no longer use /kern/msgbuf.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Oct 7 04:01:34 1997 UTC (16 years, 11 months ago) by phil
Branch: MAIN
Changes since 1.1: +10 -3 lines
Diff to previous 1.1 (colored)

Update to current state.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri Sep 26 23:02:54 1997 UTC (16 years, 11 months ago) by phil
Branch: PIERMONT_NELSON
CVS Tags: REL_0
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import of sysinst.  Not quite ready, but other ports want access for
parallel development.  i386 version about 90% complete.  pc532 version
just started, other architectures later in coordination with portmasters.

This is a curses based, menu driven installation program.

Better error checking is needed.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Sep 26 23:02:54 1997 UTC (16 years, 11 months ago) by phil
Branch: MAIN

Initial revision

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.




CVSweb <webmaster@jp.NetBSD.org>