The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.70.2.1, Tue Aug 19 23:45:46 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.70: +1 -1 lines
FILE REMOVED

Rebase to HEAD as of a few days ago.

Revision 1.70.10.1, Sun Aug 10 06:48:49 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.70: +1 -1 lines
FILE REMOVED

Rebase.

Revision 1.71, Sat Jul 26 19:30:39 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, localcount-20160914, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, HEAD
Changes since 1.70: +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.69.2.1 / (download) - annotate - [select for diffs], Thu May 17 18:57:11 2012 UTC (11 years, 10 months ago) by sborrill
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, 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-6-RELEASE, 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.69: +9 -8 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Pull up the following revisions(s) (requested by riz in ticket #247):
	distrib/utils/sysinst/Makefile.inc: revision 1.59 via patch
	distrib/utils/sysinst/checkrc.c: revision 1.1-1.2 via patch
	distrib/utils/sysinst/configmenu.c: revision 1.1-1.5 via patch
	distrib/utils/sysinst/defs.h: revision 1.162 via patch
	distrib/utils/sysinst/install.c: revision 1.46 via patch
	distrib/utils/sysinst/main.c: revision 1.64 via patch
	distrib/utils/sysinst/mbr.c: revision 1.90 via patch
	distrib/utils/sysinst/menus.mi: revision 1.45-1.46 via patch
	distrib/utils/sysinst/msg.mbr.de: revision 1.12 via patch
	distrib/utils/sysinst/msg.mbr.en: revision 1.16-1.17 via patch
	distrib/utils/sysinst/msg.mbr.es: revision 1.7 via patch
	distrib/utils/sysinst/msg.mbr.fr: revision 1.18-1.19 via patch
	distrib/utils/sysinst/msg.mbr.pl: revision 1.15-1.16 via patch
	distrib/utils/sysinst/msg.mi.de: revision 1.62-1.67 via patch
	distrib/utils/sysinst/msg.mi.en: revision 1.170-1.172 via patch
	distrib/utils/sysinst/msg.mi.es: revision 1.40-1.43 via patch
	distrib/utils/sysinst/msg.mi.fr: revision 1.120-1.126 via patch
	distrib/utils/sysinst/msg.mi.pl: revision 1.79-1.83 via patch
	distrib/utils/sysinst/net.c: revision 1.131-1.132 via patch
	distrib/utils/sysinst/run.c: revision 1.70 via patch
	distrib/utils/sysinst/target.c: revision 1.55 via patch
	distrib/utils/sysinst/util.c: revision 1.174-1.178 via patch
	distrib/utils/sysinst/arch/evbarm/msg.md.de: revision 1.10-1.11 via patch
	distrib/utils/sysinst/arch/evbmips/md.c: revision 1.10 via patch
	distrib/utils/sysinst/arch/hp300/msg.md.de: revision 1.6-1.7 via patch
	distrib/utils/sysinst/arch/hp300/msg.md.en: revision 1.9 via patch
	distrib/utils/sysinst/arch/hp300/msg.md.es: revision 1.5 via patch
	distrib/utils/sysinst/arch/hp300/msg.md.fr: revision 1.8 via patch
	distrib/utils/sysinst/arch/hp300/msg.md.pl: revision 1.8 via patch
	distrib/utils/sysinst/arch/i386/msg.md.en: revision 1.62-1.63 via patch
	distrib/utils/sysinst/arch/i386/msg.md.es: revision 1.14 via patch
	distrib/utils/sysinst/arch/i386/msg.md.de: revision 1.23

Sync sysinst with -current as of 2011-05-17
Add new post-install configuration menu for sysinst, and apply numerous
bug fixes.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:02:50 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.68: +26 -24 lines
Diff to previous 1.68 (colored) next main 1.69 (colored)

sync with head

Revision 1.70 / (download) - annotate - [select for diffs], Sun Feb 26 10:17:44 2012 UTC (12 years, 1 month ago) by mbalmer
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, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy
Changes since 1.69: +9 -8 lines
Diff to previous 1.69 (colored)

Fold long lines and a little KNF.

Revision 1.69 / (download) - annotate - [selected], Thu Jan 5 21:29:24 2012 UTC (12 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-6-base
Branch point for: netbsd-6
Changes since 1.68: +18 -17 lines
Diff to previous 1.68 (colored)

eliminate useless booleans and use the file pointers as conditionals.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Jul 6 01:18:08 2011 UTC (12 years, 8 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored) to selected 1.69 (colored)

fix check against errstr to use the right variable.  GCC 4.5 rightly
complained that err (the libc function) is always not NULL.

Revision 1.67 / (download) - annotate - [select for diffs], Mon May 30 14:20:19 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored) to selected 1.69 (colored)

Declare mmsg as string constant, not as a pointer to a string constant.
This avoids format strings warnings.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Apr 4 08:30:13 2011 UTC (12 years, 11 months ago) by mbalmer
Branch: MAIN
Changes since 1.65: +11 -15 lines
Diff to previous 1.65 (colored) to selected 1.69 (colored)

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

Revision 1.64.16.1 / (download) - annotate - [select for diffs], Thu Jan 22 22:19:39 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, 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-5-RELEASE, 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, 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
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored) next main 1.65 (colored) to selected 1.69 (colored)

Pull up following revision(s) (requested by christos in ticket #300):
	distrib/utils/sysinst/run.c: revision 1.65
Put the log files into /tmp.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Dec 1 10:22:36 2008 UTC (15 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored) to selected 1.69 (colored)

Put the log files into /tmp.

Revision 1.64.8.1, Sun Oct 5 20:11:10 2008 UTC (15 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.64: +1 -1 lines
FILE REMOVED

Sync with HEAD.

Revision 1.63.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:10:15 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored) next main 1.64 (colored) to selected 1.69 (colored)

sync with HEAD

Revision 1.64 / (download) - annotate - [select for diffs], Tue Oct 9 18:43:26 2007 UTC (16 years, 5 months ago) by martin
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, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, pc532-eol-2008, netbsd-5-base, mjf-devfs2-base, mjf-devfs-base, mjf-devfs, matt-mips64-base2, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf
Branch point for: netbsd-5, mjf-devfs2
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored) to selected 1.69 (colored)

Clear the remainder of the status line after updating it - this allows
messages to be of arbitrary length w/o leaving garbage from previous
ones.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Sep 29 09:29:12 2006 UTC (17 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored) to selected 1.69 (colored)

Make the DEBUG version build again.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Apr 24 19:00:30 2006 UTC (17 years, 11 months ago) by snj
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored) to selected 1.69 (colored)

It's "its."

Revision 1.61 / (download) - annotate - [select for diffs], Sat Feb 25 20:21:00 2006 UTC (18 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.60: +26 -12 lines
Diff to previous 1.60 (colored) to selected 1.69 (colored)

Use a menu for 'install from floppy' questions.
Ask whether the user wants to delete the fetched files (ftp and floppy) after
install.  Delete after sucessful install of each file.
Kill bufferred tty input in a couple of places when typeahead will be wrong.
Code added to run.c to do a 'cd' in the child, unused (so far).

Revision 1.60 / (download) - annotate - [select for diffs], Thu Jan 12 22:02:44 2006 UTC (18 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.59: +7 -4 lines
Diff to previous 1.59 (colored) to selected 1.69 (colored)

Rework the installation loop so that it is possible to change the source
of the sets after an error.
A side effect is that it now does fetch-install-fetch-install..., not
fetch-...-fetch-install-...install.
The set selection code now uses a byte per set (not a bit-pattern) removing
the restriction of 32 sets, and allowing a per set status display (TBC).
Also TBC is deleting sets from /usr/INSTALL.
However I believe it works...

Revision 1.55.2.2.2.1 / (download) - annotate - [select for diffs], Sun Jul 24 02:25:24 2005 UTC (18 years, 8 months ago) by snj
Branch: netbsd-2
CVS Tags: 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
Changes since 1.55.2.2: +17 -17 lines
Diff to previous 1.55.2.2 (colored) next main 1.56 (colored) to selected 1.69 (colored)

Apply patch (requested by riz in ticket #5523):
Sync sysinst with HEAD of 2005-07-23.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Feb 26 17:40:49 2005 UTC (19 years, 1 month 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.58: +17 -16 lines
Diff to previous 1.58 (colored) to selected 1.69 (colored)

Put 'Delete ?' (not "yes or no") in box when we ask whether the user
want to keep or delete the dist files.
Stop the "type enter to continue" if the rmdir fails - may not be empty.
Report an error if the chroot() (for RUN_CHROOT) fails.
fflush log and script files before writing to them from a child.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Oct 16 12:52:30 2004 UTC (19 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.57: +1 -2 lines
Diff to previous 1.57 (colored) to selected 1.69 (colored)

Remove used variable

Revision 1.55.2.2 / (download) - annotate - [select for diffs], Mon Jun 7 10:20:51 2004 UTC (19 years, 9 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, 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
Branch point for: netbsd-2
Changes since 1.55.2.1: +45 -26 lines
Diff to previous 1.55.2.1 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored) to selected 1.69 (colored)

Pull up revision 1.57 (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.57 / (download) - annotate - [select for diffs], Sat Jun 5 21:19:00 2004 UTC (19 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.56: +45 -26 lines
Diff to previous 1.56 (colored) to selected 1.69 (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.55.2.1 / (download) - annotate - [select for diffs], Sat May 22 16:45:01 2004 UTC (19 years, 10 months ago) by he
Branch: netbsd-2-0
Changes since 1.55: +13 -12 lines
Diff to previous 1.55 (colored) to selected 1.69 (colored)

Pull up revision 1.56 (requested by dsl in ticket #362):
  Don't leak an fd if malloc() fails in collect().

Revision 1.56 / (download) - annotate - [select for diffs], Sat May 15 21:51:30 2004 UTC (19 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.55: +13 -12 lines
Diff to previous 1.55 (colored) to selected 1.69 (colored)

Don't leak an fd if malloc() fails in collect()

Revision 1.55 / (download) - annotate - [select for diffs], Sun Nov 30 14:36:44 2003 UTC (20 years, 4 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.54: +19 -19 lines
Diff to previous 1.54 (colored) to selected 1.69 (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.54 / (download) - annotate - [select for diffs], Tue Nov 11 17:27:13 2003 UTC (20 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored) to selected 1.69 (colored)

Line up 'Command' and 'Status' strings,
ensure command text doesn't overflow line.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Oct 19 20:17:32 2003 UTC (20 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.52: +179 -148 lines
Diff to previous 1.52 (colored) to selected 1.69 (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.52 / (download) - annotate - [select for diffs], Sat Sep 27 10:38:05 2003 UTC (20 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.51: +15 -29 lines
Diff to previous 1.51 (colored) to selected 1.69 (colored)

Just convert \r\n to \n\r when relaying program output.
Ensure we never write an undefined error message.
Remove support for RUN_SYSTEM - it isn't used and there are too many paths
through this code....

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Tue Aug 19 14:40:31 2003 UTC (20 years, 7 months ago) by tron
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored) next main 1.36 (colored) to selected 1.69 (colored)

Apply patch (requested by dsl in ticket 1393):
Stop sysinst from dumping core randomly. This fixes PR install/17223.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Aug 9 19:26:38 2003 UTC (20 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.50: +48 -35 lines
Diff to previous 1.50 (colored) to selected 1.69 (colored)

Don't delete \r that aren't followed by '\n' when relaying program output.
Needed to get progress bar displayed correctly.
Kill a level of indent to get some coding space.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Aug 6 13:56:59 2003 UTC (20 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.49: +7 -5 lines
Diff to previous 1.49 (colored) to selected 1.69 (colored)

use bounded string op

Revision 1.49 / (download) - annotate - [select for diffs], Tue Aug 5 13:35:29 2003 UTC (20 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.48: +28 -44 lines
Diff to previous 1.48 (colored) to selected 1.69 (colored)

When writing /etc/fstab:
add support for setting mount options of async, noatime, nodevmtine and softdep.
add noauto if 'mount' was not requested.
add entry for /proc (with noauto)
Display fragment size and block size on the correct line.
Ask for numeric fragment size (not # fragments/block).
Show one unused partition when editing disklabel.
Zap all fields when a partition is made FS_UNSED.
Tweak some menu texts (a space at the end of a line causes a line break!).
Simplify code that displays output from commands - curses is requied to not DTRT
with CR/LF sequences, I need to revert libcurses :-(

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jul 28 11:32:21 2003 UTC (20 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.47: +10 -25 lines
Diff to previous 1.47 (colored) to selected 1.69 (colored)

Remove extra process and pipe that relayed data from the master pty
to sysinst's main process when a command is run (eg the file list from pax).
Since the pty is in 'packet' mode, the boundaries of the pty reads would
need to be preserved in order to detect control records.
If the pipe became full the main process could treat part of a filename
as a control byte and then save the rest of the name as tty settings.
The effect of 'random' tty settings is unknown, but could be responsible
for core dumps while displaying the full file list from pax.
I suspect that the extra pipe was originally used because select wasn't
supported on the master side of a pty (not checked).

Also cd out of /targetroot if set installation is killed with ^C ^C.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Jul 27 07:45:09 2003 UTC (20 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.46: +5 -5 lines
Diff to previous 1.46 (colored) to selected 1.69 (colored)

Remove 'menu_ent' parameter from action routines.
Add menu for all disklabel partition types.
Default 'partition type' and 'sizechoice' menus to current value.
Change 'standard/use existing' to 'set sizes/use existing'.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Jul 25 08:26:22 2003 UTC (20 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored) to selected 1.69 (colored)

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

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jul 18 09:34:42 2003 UTC (20 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.44: +77 -13 lines
Diff to previous 1.44 (colored) to selected 1.69 (colored)

Remove some fixed length strings.
Do limited filename globbing.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Jul 17 19:44:53 2003 UTC (20 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.43: +9 -10 lines
Diff to previous 1.43 (colored) to selected 1.69 (colored)

Remove the endwin() and refresh() pair which caused the screen to flash
whenever a command was run.  Maybe a screen redraw is required if the
command is able to corrupt the screen - but the refresh was happening
much too early to fix that, and it would be better to collect/discard
the commands output anyway.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jul 10 13:36:48 2003 UTC (20 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.42: +7 -2 lines
Diff to previous 1.42 (colored) to selected 1.69 (colored)

Ensure correct curses tty settings are restored after a program runs.
Remove the abberant call to endwin() in i386 md_update() that caused
echo to be left on. I've not removed the endwin from the other ports.
Only run MAKEDEV if etc.tgz installed.
Some extra sanity checks on an 'rm -rf %s'.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Jul 7 12:30:22 2003 UTC (20 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.41: +6 -3 lines
Diff to previous 1.41 (colored) to selected 1.69 (colored)

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

Revision 1.41 / (download) - annotate - [select for diffs], Mon Jun 16 19:42:14 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.40: +5 -10 lines
Diff to previous 1.40 (colored) to selected 1.69 (colored)

A load of KNF changes, plus a couple of strnxxx => strlxxx my fingers did
on the way through.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Jun 4 19:09:50 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored) to selected 1.69 (colored)

Add extra parameter (exit text) to new_menu() calls

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jun 3 11:54:49 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.38: +7 -7 lines
Diff to previous 1.38 (colored) to selected 1.69 (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.38 / (download) - annotate - [select for diffs], Sun Feb 9 16:31:05 2003 UTC (21 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.37: +3 -2 lines
Diff to previous 1.37 (colored) to selected 1.69 (colored)

Avoid a spurious warning (with random errno) if read(2) returns 0
(i.e. at EOF).

This should close PR install/20054.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jan 10 20:00:28 2003 UTC (21 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.36: +32 -47 lines
Diff to previous 1.36 (colored) to selected 1.69 (colored)

pass lint[pass1]

Revision 1.36 / (download) - annotate - [select for diffs], Thu Dec 5 01:17:17 2002 UTC (21 years, 3 months ago) by fvdl
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.35: +19 -17 lines
Diff to previous 1.35 (colored) to selected 1.69 (colored)

FILE *log -> FILE *logfp, to avoid warnings about gcc-current's
builtin log() function.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Sep 13 18:07:26 2001 UTC (22 years, 6 months ago) by jdolecek
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-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6
Changes since 1.34: +31 -16 lines
Diff to previous 1.34 (colored) to selected 1.69 (colored)

change launch_subwin() to pass failure reason back to caller, add check
pipe(2) call was successful
make launch_subwin(), va_prog_cmdstr() static

Revision 1.34 / (download) - annotate - [select for diffs], Sun Jan 14 02:38:15 2001 UTC (23 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored) to selected 1.69 (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.33 / (download) - annotate - [select for diffs], Fri Dec 22 10:12:13 2000 UTC (23 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored) to selected 1.69 (colored)

de-__P()-ify

Revision 1.30.4.2 / (download) - annotate - [select for diffs], Wed Oct 18 17:51:15 2000 UTC (23 years, 5 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.30.4.1: +58 -18 lines
Diff to previous 1.30.4.1 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored) to selected 1.69 (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.32 / (download) - annotate - [select for diffs], Wed Oct 11 23:47:56 2000 UTC (23 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.31: +58 -18 lines
Diff to previous 1.31 (colored) to selected 1.69 (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.30.4.1 / (download) - annotate - [select for diffs], Tue Aug 15 02:12:53 2000 UTC (23 years, 7 months ago) by hubertf
Branch: netbsd-1-5
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (colored) to selected 1.69 (colored)

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

Revisions:
 > cvs rdiff -r1.54 -r1.55 basesrc/distrib/utils/sysinst/defs.h
 > cvs rdiff -r1.19 -r1.20 basesrc/distrib/utils/sysinst/install.c
 > cvs rdiff -r1.42 -r1.43 basesrc/distrib/utils/sysinst/menus.mi.en
 > cvs rdiff -r1.64 -r1.65 basesrc/distrib/utils/sysinst/msg.mi.en
 > cvs rdiff -r1.30 -r1.31 basesrc/distrib/utils/sysinst/run.c
 > cvs rdiff -r1.51 -r1.52 basesrc/distrib/utils/sysinst/util.c

Log Message:
 >  * 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.31 / (download) - annotate - [select for diffs], Tue Aug 15 01:08:00 2000 UTC (23 years, 7 months ago) by hubertf
Branch: MAIN
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (colored) to selected 1.69 (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.30 / (download) - annotate - [select for diffs], Fri Apr 14 21:46:11 2000 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored) to selected 1.69 (colored)

Don't access curses internals, use getmaxy() instead.

Revision 1.11.2.7 / (download) - annotate - [select for diffs], Mon Jan 24 10:48:10 2000 UTC (24 years, 2 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.11.2.6: +1 -3 lines
Diff to previous 1.11.2.6 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored) to selected 1.69 (colored)

Pull up revision 1.29 (requested by he):
  Remove local declaration of errno, rely on <errno.h> instead.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jan 24 10:40:56 2000 UTC (24 years, 2 months ago) by he
Branch: MAIN
Changes since 1.28: +1 -3 lines
Diff to previous 1.28 (colored) to selected 1.69 (colored)

Remove local declaration of errno, rely on <errno.h> instead.

Revision 1.11.2.6 / (download) - annotate - [select for diffs], Sun Jan 23 12:57:12 2000 UTC (24 years, 2 months ago) by he
Branch: netbsd-1-4
Changes since 1.11.2.5: +48 -43 lines
Diff to previous 1.11.2.5 (colored) to branchpoint 1.11 (colored) to selected 1.69 (colored)

Pull up revisions 1.26-1.28 (requested by mycroft):
  Get rid of the side and bottom borders on command output windows,
  so this works better on a terminal.  Also fix bugs that could
  cause the display to be partially blanked after a suspend/resume.

Revision 1.11.2.5 / (download) - annotate - [select for diffs], Sun Jan 23 12:53:23 2000 UTC (24 years, 2 months ago) by he
Branch: netbsd-1-4
Changes since 1.11.2.4: +10 -19 lines
Diff to previous 1.11.2.4 (colored) to branchpoint 1.11 (colored) to selected 1.69 (colored)

Revert pull-up of revision 1.25 (requested by mycroft):
  Off-by-one error in pullup request.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jan 19 09:44:01 2000 UTC (24 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.27: +42 -41 lines
Diff to previous 1.27 (colored) to selected 1.69 (colored)

Fix display problems:
* Use endwin() strategically so that the child does not corrupt the display
  when suspending or exiting.
* Handle backspace.
* Only do one refresh per buffer-full.
* Eliminate redundant code.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jan 19 08:46:26 2000 UTC (24 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored) to selected 1.69 (colored)

Fix display glitch when suspending and resuming.

Revision 1.11.2.4 / (download) - annotate - [select for diffs], Sat Jan 15 17:27:52 2000 UTC (24 years, 2 months ago) by he
Branch: netbsd-1-4
Changes since 1.11.2.3: +19 -10 lines
Diff to previous 1.11.2.3 (colored) to branchpoint 1.11 (colored) to selected 1.69 (colored)

Pull up revision 1.25 (requested by mycroft):
  Get rid of the side and bottom borders on command output windows,
  so this works better on a terminal.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jan 13 18:52:21 2000 UTC (24 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.25: +12 -8 lines
Diff to previous 1.25 (colored) to selected 1.69 (colored)

In command execution displays, only draw a single line between the status
display and the output window, not a whole box.  This looks better, and it
works much better on terminals.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jan 7 02:02:05 2000 UTC (24 years, 2 months ago) by jeremy
Branch: MAIN
Changes since 1.24: +19 -10 lines
Diff to previous 1.24 (colored) to selected 1.69 (colored)

Added error checking to log and script file creation functions.
Prevents sysinst from coredumping should the root filesystem be accidentally
mounted read-only.

Revision 1.11.2.3 / (download) - annotate - [select for diffs], Thu Jul 15 03:04:43 1999 UTC (24 years, 8 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH001
Changes since 1.11.2.2: +1 -2 lines
Diff to previous 1.11.2.2 (colored) to branchpoint 1.11 (colored) to selected 1.69 (colored)

pullup 1.23->1.24 (abs): critical fix for sysinst. grrrrr....

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jul 14 16:30:58 1999 UTC (24 years, 8 months ago) by abs
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.23: +1 -2 lines
Diff to previous 1.23 (colored) to selected 1.69 (colored)

If the first wait4() in launch_subwin() caught the child exiting, the loop
would never exit. This resulted in somewhat suboptimal infinite install times.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jul 4 21:39:34 1999 UTC (24 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored) to selected 1.69 (colored)

convert run_prog's error message from being a "const char *" to a msg.
XXX Only the callers that actually pass strings were fixed, the rest were
XXX left passing 'NULL'.  Eventually they should be cleaned up to pass
XXX MSG_NONE, but I didn't want to do that yet because somebody else
XXX (jonathan) is hacking on the run_prog callers and I didn't want to
XXX cause him a Lot of conflicts.  at least right now, MSG_NONE and NULL
XXX are as equivalent as they need to be.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jul 4 21:32:48 1999 UTC (24 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored) to selected 1.69 (colored)

message const poisoning, and conversion from integers to an opaque
message type.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Thu Jun 24 23:01:37 1999 UTC (24 years, 9 months ago) by cgd
Branch: netbsd-1-4
Changes since 1.11.2.1: +55 -31 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored) to selected 1.69 (colored)

pull up rev(s) 1.15-1.21 from trunk. (cgd)

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jun 22 00:43:57 1999 UTC (24 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: dynamic-messages-base, dynamic-messages
Changes since 1.20: +19 -2 lines
Diff to previous 1.20 (colored) to selected 1.69 (colored)

provide a way to ignore tty-generated signals (INTR and QUIT) and/or
forward them on to subprocesses.  nice when running a subprocess in
a display window to allow the user to kill the subprocess w/o nuking
sysinst itself.  add handling for QUIT, which gets handled the same
as intr.  add handling for HUP which just cleans up.  More signals
should be handled.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jun 21 02:55:27 1999 UTC (24 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.69 (colored)

actually use all of the action window for command output

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jun 21 02:47:41 1999 UTC (24 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.18: +12 -21 lines
Diff to previous 1.18 (colored) to selected 1.69 (colored)

simplify the code to display cmd output in subwindows slightly.  while
at it, remove the gratuitous inefficiencies.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jun 21 02:31:17 1999 UTC (24 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.17: +15 -14 lines
Diff to previous 1.17 (colored) to selected 1.69 (colored)

handle CRs properly when running cmds w/output to subwin

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jun 20 20:26:42 1999 UTC (24 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored) to selected 1.69 (colored)

nuke extra spaces around logging menu title, allow the menu to be
automatically horizontally centered.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jun 20 06:08:15 1999 UTC (24 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.69 (colored)

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

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jun 20 04:17:57 1999 UTC (24 years, 9 months ago) by garbled
Branch: MAIN
Changes since 1.14: +16 -1 lines
Diff to previous 1.14 (colored) to selected 1.69 (colored)

Check the return code of subwin and newwin for NULL.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Mon Apr 19 15:19:28 1999 UTC (24 years, 11 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE
Changes since 1.11: +16 -8 lines
Diff to previous 1.11 (colored) to selected 1.69 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Tue Apr 13 14:49:56 1999 UTC (24 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.13: +5 -2 lines
Diff to previous 1.13 (colored) to selected 1.69 (colored)

- Add a message explaining the user how to specify units for inputs
- in run_prog(), do an explicit wclear(stdscr); wrefresh(stdscr);
  before launching subwindows. This seems to solve all the display
  problems associated with run_prog().

Revision 1.13 / (download) - annotate - [select for diffs], Sun Apr 11 22:40:21 1999 UTC (24 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.12: +5 -3 lines
Diff to previous 1.12 (colored) to selected 1.69 (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.12 / (download) - annotate - [select for diffs], Fri Apr 9 10:24:39 1999 UTC (24 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.11: +8 -5 lines
Diff to previous 1.11 (colored) to selected 1.69 (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.11 / (download) - annotate - [select for diffs], Mon Mar 22 09:02:47 1999 UTC (25 years ago) by ross
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.10: +15 -8 lines
Diff to previous 1.10 (colored) to selected 1.69 (colored)

Bug fix: deal with race-like (select(2) vs wait4(2)) error flow bogon.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Mar 11 16:48:27 1999 UTC (25 years ago) by marc
Branch: MAIN
Changes since 1.9: +5 -1 lines
Diff to previous 1.9 (colored) to selected 1.69 (colored)

if exec fails, perror() and _exit().  exit() is no good, because if
the child runs the atexit cleanup() function, the filesystems get
unmounted and things lose.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 9 19:30:00 1999 UTC (25 years ago) by he
Branch: MAIN
Changes since 1.8: +7 -1 lines
Diff to previous 1.8 (colored) to selected 1.69 (colored)

If TIOCGWINSIZE returns 0 x 0, default to 80 x 24 instead of crashing.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Feb 1 14:08:35 1999 UTC (25 years, 2 months ago) by he
Branch: MAIN
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 (colored) to selected 1.69 (colored)

Move extern declaration of do_system() from run.c to defs.h, used by i386/md.c

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 21 08:02:18 1999 UTC (25 years, 2 months ago) by garbled
Branch: MAIN
Changes since 1.6: +316 -51 lines
Diff to previous 1.6 (colored) to selected 1.69 (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.6 / (download) - annotate - [select for diffs], Mon Aug 10 02:23:45 1998 UTC (25 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) to selected 1.69 (colored)

bzero->memset

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jun 20 13:05:50 1998 UTC (25 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.4: +42 -37 lines
Diff to previous 1.4 (colored) to selected 1.69 (colored)

KNF.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Thu Nov 6 00:43:39 1997 UTC (26 years, 4 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.2.2.1: +2 -2 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored) to selected 1.69 (colored)

Pull rev 1.4 up from trunk (jonathan)

Revision 1.4 / (download) - annotate - [select for diffs], Mon Nov 3 02:38:50 1997 UTC (26 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored) to selected 1.69 (colored)

* Clean up target.c to use a single consistent path-prefixing subroutine.
* Correct arg typo in mv_within_target_or_die().
* Add new path-prefixing entrypoints to fopen(), collect(), and do mounts.
* Use the above.  MI code is now clean of explicit references to /mnt.
* Lint: add `const' to collect()'s pathname arg.
  include <stdio.h> in factor.c, now that defs.h uses FILE*.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Sun Nov 2 20:44:36 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.2: +90 -7 lines
Diff to previous 1.2 (colored) to selected 1.69 (colored)

Pull rev 1.3 up from trunk (jonathan)

Revision 1.3 / (download) - annotate - [select for diffs], Sun Nov 2 03:45:30 1997 UTC (26 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.2: +90 -7 lines
Diff to previous 1.2 (colored) to selected 1.69 (colored)

Add two variants of run_prog() for errors that aren't otherwise handled:
   run_prog_or_die() -- aborts  if  system() returns an error.
   run_prog_or_continue() -- prints a  warning that installation may
	have failed but lets the user continue.  Suitable for running mkdir.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Sep 27 00:09:29 1997 UTC (26 years, 6 months ago) by phil
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored) to selected 1.69 (colored)

Sync to current state.  (detect ftp error, clean up directories ...)

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri Sep 26 23:02:54 1997 UTC (26 years, 6 months ago) by phil
Branch: PIERMONT_NELSON
CVS Tags: REL_0
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.69 (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 (26 years, 6 months ago) by phil
Branch: MAIN
Diff to selected 1.69 (colored)

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>