The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.55.2.1, Tue Aug 19 23:45:46 2014 UTC (7 days, 21 hours ago) by tls
Branch: tls-maxphys
Changes since 1.55: +2 -2 lines
FILE REMOVED

Rebase to HEAD as of a few days ago.

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

Rebase.

Revision 1.56, Sat Jul 26 19:30:39 2014 UTC (4 weeks, 4 days ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, HEAD
Changes since 1.55: +2 -2 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.54.2.1 / (download) - annotate - [select for diffs], Thu May 17 18:57:11 2012 UTC (2 years, 3 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-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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.54: +8 -2 lines
Diff to previous 1.54 (colored) next main 1.55 (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.52.6.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:02:50 2012 UTC (2 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.52: +12 -6 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

sync with head

Revision 1.55 / (download) - annotate - [select for diffs], Fri Apr 6 23:48:54 2012 UTC (2 years, 4 months ago) by riz
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.54: +8 -2 lines
Diff to previous 1.54 (colored)

Implement a post-install configuration menu, as proposed on tech-install.
Enables the user to configure a few additional items, including using
pkgin to manage binary packages, in a post-install menu which replaces
the series of questions (Do you want to set a root password? etc).

This is by no means a perfect solution, nor should it discourage anyone
from working on more sweeping changes to sysinst.

Some bug fixes, and .de translation provided by Julian Fagir.

XXX .es, .fr and .pl translations still needed.  Please help!

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jan 5 21:29:25 2012 UTC (2 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-6-base
Branch point for: netbsd-6
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored)

eliminate useless booleans and use the file pointers as conditionals.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Jan 5 21:22:49 2012 UTC (2 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

- add printflike and fix the broken formats
- make sure we don't exceed the number of partitions we have

Revision 1.52 / (download) - annotate - [select for diffs], Sat Sep 19 14:57:27 2009 UTC (4 years, 11 months ago) by abs
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, matt-premerge-20091211, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.51: +2 -4 lines
Diff to previous 1.51 (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.51.18.1, Sun Oct 5 20:11:10 2008 UTC (5 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.51: +2 -2 lines
FILE REMOVED

Sync with HEAD.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Oct 23 19:44:57 2006 UTC (7 years, 10 months ago) by he
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
Branch point for: mjf-devfs2
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Correctly order "static" relative to "const" and "volatile", i.e.
at the front (at least that's what gcc thinks...).

Revision 1.50 / (download) - annotate - [select for diffs], Fri Sep 29 09:29:12 2006 UTC (7 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

Make the DEBUG version build again.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Feb 25 13:29:34 2006 UTC (8 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.48: +2 -149 lines
Diff to previous 1.48 (colored)

target_realpath() is only used by the code that updates libraries from
a.out to elf - so move it into aout2elf.c
I'm not even sure this code is important at all any more.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Jan 12 22:02:44 2006 UTC (8 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.47: +5 -4 lines
Diff to previous 1.47 (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.46.4.1 / (download) - annotate - [select for diffs], Sun Jul 24 02:25:24 2005 UTC (9 years, 1 month 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.46: +6 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

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

Revision 1.47 / (download) - annotate - [select for diffs], Sun Jun 6 06:06:59 2004 UTC (10 years, 2 months ago) by christos
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.46: +6 -3 lines
Diff to previous 1.46 (colored)

Get rid of the EXTERN/INIT mess; fix so that we can process this with xstr(1).
Not worth processing though, since on the i386 we only save ~3K.

Revision 1.46 / (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-base, netbsd-2-0-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, netbsd-2-0
Branch point for: netbsd-2
Changes since 1.45: +5 -3 lines
Diff to previous 1.45 (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.45 / (download) - annotate - [select for diffs], Sun Nov 30 14:36:44 2003 UTC (10 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.44: +32 -102 lines
Diff to previous 1.44 (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.44 / (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.43: +5 -4 lines
Diff to previous 1.43 (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.43 / (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.42: +27 -184 lines
Diff to previous 1.42 (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.31.2.1 / (download) - annotate - [select for diffs], Mon Aug 11 19:28:59 2003 UTC (11 years ago) by msaitoh
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.31: +4 -3 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Pull up rev. 1.40 (requested by itojun in ticket #1400):
 fix realpath vuln, just like SA2003-011.

Revision 1.22.10.5 / (download) - annotate - [select for diffs], Mon Aug 11 18:43:40 2003 UTC (11 years ago) by msaitoh
Branch: netbsd-1-5
Changes since 1.22.10.4: +4 -3 lines
Diff to previous 1.22.10.4 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Pull up rev. 1.40 (requested by itojun in ticket #62):
 fix realpath vuln, just like SA2003-011.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Aug 7 09:28:01 2003 UTC (11 years ago) by agc
Branch: MAIN
Changes since 1.41: +3 -7 lines
Diff to previous 1.41 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22268, verified by myself.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Aug 6 13:56:59 2003 UTC (11 years ago) by itojun
Branch: MAIN
Changes since 1.40: +23 -13 lines
Diff to previous 1.40 (colored)

use bounded string op

Revision 1.40 / (download) - annotate - [select for diffs], Wed Aug 6 13:36:16 2003 UTC (11 years ago) by itojun
Branch: MAIN
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored)

fix realpath vuln, just like SA2003-011.  i do not think it attackable

Revision 1.39 / (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.38: +6 -5 lines
Diff to previous 1.38 (colored)

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

Revision 1.38 / (download) - annotate - [select for diffs], Tue Jul 8 17:38:58 2003 UTC (11 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.37: +5 -4 lines
Diff to previous 1.37 (colored)

Sort out (and remember) the disk partition we will install into.
This should stop the i386 code splatting all over the start of the disk
during upgrade.
Upgrade will still use partition 'a' (unless you loop through the install
far enough first!)

Revision 1.37 / (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.36: +12 -11 lines
Diff to previous 1.36 (colored)

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

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jun 25 15:45:22 2003 UTC (11 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.35: +4 -3 lines
Diff to previous 1.35 (colored)

Add a -D (debug) option for testing.
Ignore inability to remove swap if -D specified.
Select disk before sets (but label after)
Let mac68k sysinst run on i386.

Revision 1.35 / (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.34: +44 -84 lines
Diff to previous 1.34 (colored)

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

Revision 1.34 / (download) - annotate - [select for diffs], Fri Jan 10 20:00:28 2003 UTC (11 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.33: +19 -15 lines
Diff to previous 1.33 (colored)

pass lint[pass1]

Revision 1.33 / (download) - annotate - [select for diffs], Thu Dec 5 01:17:18 2002 UTC (11 years, 8 months ago) by fvdl
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.32: +6 -6 lines
Diff to previous 1.32 (colored)

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

Revision 1.32 / (download) - annotate - [select for diffs], Sat Oct 19 20:33:18 2002 UTC (11 years, 10 months ago) by provos
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

use readlink with bufsize - 1; approved thorpej.

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-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.30: +4 -5 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], Fri Dec 22 10:12:13 2000 UTC (13 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.29: +13 -13 lines
Diff to previous 1.29 (colored)

de-__P()-ify

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

Fix typos in comments.

Revision 1.22.10.4 / (download) - annotate - [select for diffs], Fri Oct 20 17:25:01 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.22.10.3: +3 -2 lines
Diff to previous 1.22.10.3 (colored) to branchpoint 1.22 (colored)

Pullup 1.28 [pk]:
We need <fcntl.h>

Revision 1.28 / (download) - annotate - [select for diffs], Thu Oct 19 14:42:57 2000 UTC (13 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored)

We need <fcntl.h>

Revision 1.22.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
Changes since 1.22.10.2: +191 -22 lines
Diff to previous 1.22.10.2 (colored) to branchpoint 1.22 (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.27 / (download) - annotate - [select for diffs], Wed Oct 11 23:47:56 2000 UTC (13 years, 10 months ago) by fvdl
Branch: MAIN
Changes since 1.26: +8 -8 lines
Diff to previous 1.26 (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.26 / (download) - annotate - [select for diffs], Wed Oct 11 11:10:11 2000 UTC (13 years, 10 months ago) by fvdl
Branch: MAIN
Changes since 1.25: +176 -7 lines
Diff to previous 1.25 (colored)

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.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Sep 26 13:26:02 2000 UTC (13 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.24: +9 -9 lines
Diff to previous 1.24 (colored)

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)).

Revision 1.22.10.2 / (download) - annotate - [select for diffs], Wed Sep 20 20:13:15 2000 UTC (13 years, 11 months ago) by hubertf
Branch: netbsd-1-5
Changes since 1.22.10.1: +15 -6 lines
Diff to previous 1.22.10.1 (colored) to branchpoint 1.22 (colored)

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

Revs:
 > cvs rdiff -r1.56 -r1.57 basesrc/distrib/utils/sysinst/defs.h
 > cvs rdiff -r1.23 -r1.24 basesrc/distrib/utils/sysinst/target.c

Log:
 >  * make target-routines (target_expand(), and whatnot) work if no root
 >    disk was selected. With this, sysinst can now be used on a "normal"
 >    system to adjust the system's timezone. Use the entry in the "Utilities"
 >    menu for that.

(The test install that I did was actually with a 1.5 system's sources ;-)

Revision 1.24 / (download) - annotate - [select for diffs], Wed Sep 20 19:53:35 2000 UTC (13 years, 11 months ago) by hubertf
Branch: MAIN
Changes since 1.23: +15 -6 lines
Diff to previous 1.23 (colored)

 * Fix changing of /etc/rc.conf after the main file moved recently.
   'rc_configured' is still changed via sed's s///, wscons=yes is appended
   via "echo >>".
 * make target-routines (target_expand(), and whatnot) work if no root
   disk was selected. With this, sysinst can now be used on a "normal"
   system to adjust the system's timezone. Use the entry in the "Utilities"
   menu for that.

Both changes were tested by a full i386 installation.

Revision 1.22.10.1 / (download) - annotate - [select for diffs], Fri Sep 8 23:57:19 2000 UTC (13 years, 11 months ago) by hubertf
Branch: netbsd-1-5
Changes since 1.22: +20 -3 lines
Diff to previous 1.22 (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.23 / (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.22: +20 -3 lines
Diff to previous 1.22 (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.19.2.2 / (download) - annotate - [select for diffs], Thu Jun 24 23:01:45 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.19.2.1: +3 -4 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

pull up rev(s) 1.22 from trunk. (cgd)

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jun 20 06:08:15 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.21: +3 -4 lines
Diff to previous 1.21 (colored)

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

Revision 1.19.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.19: +12 -13 lines
Diff to previous 1.19 (colored)

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

Revision 1.21 / (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.20: +2 -3 lines
Diff to previous 1.20 (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.20 / (download) - annotate - [select for diffs], Fri Apr 9 10:24:39 1999 UTC (15 years, 4 months ago) by bouyer
Branch: MAIN
Changes since 1.19: +12 -12 lines
Diff to previous 1.19 (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.19 / (download) - annotate - [select for diffs], Mon Jan 25 23:34:24 1999 UTC (15 years, 7 months ago) by garbled
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.18: +5 -2 lines
Diff to previous 1.18 (colored)

1) Remove all vestiges of tar from src/distrib.  Use pax and appropriate
commandlines for all tar operations.  (work supplied by Matt Green)
2) Update arch/*/md.c to deal with new sysinst/run.c.  Special case
anything that needs to do a redirect or a pipe.
3) #if 0 some unused code in target.c. This code will need to be updated,
or special cased with do_system.

Big thank you to Matt for all his work on this.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jan 21 08:02:18 1999 UTC (15 years, 7 months ago) by garbled
Branch: MAIN
Changes since 1.17: +27 -13 lines
Diff to previous 1.17 (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.17 / (download) - annotate - [select for diffs], Mon Aug 10 02:23:45 1998 UTC (16 years ago) by perry
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

bzero->memset

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

KNF.

Revision 1.2.2.10 / (download) - annotate - [select for diffs], Fri May 29 20:48:51 1998 UTC (16 years, 3 months ago) by mycroft
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, netbsd-1-3-PATCH002
Changes since 1.2.2.9: +15 -5 lines
Diff to previous 1.2.2.9 (colored) next main 1.3 (colored)

Pull up the very last patch from fvdl.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Feb 20 02:33:51 1998 UTC (16 years, 6 months ago) by jonathan
Branch: MAIN
Changes since 1.14: +15 -5 lines
Diff to previous 1.14 (colored)

* Prune default CD path from "/Release/NetBSD/NetBSD-" back to "/NetBSD-".
* Add cp_to_target() to  copy a file from current root, to an absolute
  path relative to target root.

* Clean up alpha, arm32, i386, pmax MD code: use cp_to_target()
  NB: Alpha uses target_expand() when calling installboot.
* Add tests for target == current root. Intended to support
  `upgrade/reinstall' to current root, either for testing or easier
  minor-release upgrades. Only tested on pmax.

Revision 1.2.2.9 / (download) - annotate - [select for diffs], Fri Dec 5 14:12:49 1997 UTC (16 years, 8 months ago) by jonathan
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH001
Changes since 1.2.2.8: +25 -5 lines
Diff to previous 1.2.2.8 (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.14 / (download) - annotate - [select for diffs], Fri Dec 5 14:01:09 1997 UTC (16 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.13: +25 -5 lines
Diff to previous 1.13 (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.2.2.8 / (download) - annotate - [select for diffs], Thu Dec 4 09:10:58 1997 UTC (16 years, 8 months ago) by jonathan
Branch: netbsd-1-3
Changes since 1.2.2.7: +84 -5 lines
Diff to previous 1.2.2.7 (colored)

Pull changes to
   target.c main.c menus.mi.{fr,eng} defs.h
with commit message
   >Implement TODO item to unwind target mounts on  completion:
up to 1.3 release branch.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Dec 4 09:05:35 1997 UTC (16 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.12: +84 -5 lines
Diff to previous 1.12 (colored)

Implement TODO item to unwind target mounts on  completion:
  * Add mount_with_unwind() that adds mountpoint to a LIFO queue
    of  mountpoints to undo on error.   Use in target_mount().
  * Add unwind_mounts() which traverses the LIFO queue and unmounts
    filesystems, silently ignoring errors.
  * create toplevel() function which displays banner message and
    calls unwind_mounts().
  * change toplevel menu to call toplevel() instead of inline banner.

Where to do unwinds needs more thought.  Perhaps we should only unwind
if an upgrade or install appears unsuccessful, so after a successful
install, the target is mounted (e.g., for upgrading /etc/rc.conf).

Revision 1.2.2.7 / (download) - annotate - [select for diffs], Tue Dec 2 03:05:06 1997 UTC (16 years, 8 months ago) by jonathan
Branch: netbsd-1-3
Changes since 1.2.2.6: +11 -5 lines
Diff to previous 1.2.2.6 (colored)

pullup revision 1.12 from head. Fixes install with target == current root.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Dec 2 03:02:29 1997 UTC (16 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.11: +11 -5 lines
Diff to previous 1.11 (colored)

Fix target_already_root() check: is_active_rootpart() takes a
string like "sd0a", and compares it against mounted_rootpart(),
which returns a string like "/dev/sd0a". For now, prepend "/dev".

Revision 1.2.2.6 / (download) - annotate - [select for diffs], Tue Nov 25 20:37:34 1997 UTC (16 years, 9 months ago) by phil
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-BETA
Changes since 1.2.2.5: +2 -3 lines
Diff to previous 1.2.2.5 (colored)

Sync with HEAD.  (fixes PR 4520, 4534, 4536)

Revision 1.11 / (download) - annotate - [select for diffs], Tue Nov 25 20:35:02 1997 UTC (16 years, 9 months ago) by phil
Branch: MAIN
Changes since 1.10: +2 -3 lines
Diff to previous 1.10 (colored)

Reworked partitioning issues for i386, closes PRs 4520, 4534, 4536.
Other tweeks to make install better.

Revision 1.2.2.5 / (download) - annotate - [select for diffs], Thu Nov 13 17:28:28 1997 UTC (16 years, 9 months ago) by phil
Branch: netbsd-1-3
Changes since 1.2.2.4: +3 -3 lines
Diff to previous 1.2.2.4 (colored)

Sync with HEAD (PR 4477)

Revision 1.10 / (download) - annotate - [select for diffs], Thu Nov 13 17:26:25 1997 UTC (16 years, 9 months ago) by phil
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Fix va_start call, PR 4477.

Revision 1.2.2.4 / (download) - annotate - [select for diffs], Tue Nov 11 00:47:34 1997 UTC (16 years, 9 months ago) by phil
Branch: netbsd-1-3
Changes since 1.2.2.3: +4 -3 lines
Diff to previous 1.2.2.3 (colored)

Sync with HEAD.  (As per thorpej's instructions.)

Revision 1.9 / (download) - annotate - [select for diffs], Tue Nov 11 00:43:47 1997 UTC (16 years, 9 months ago) by phil
Branch: MAIN
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

Clear up confusion of extract_dist() extract directory source.  New var
ext_dir that is absolute directory name of where files are located to
extract.  All setup routines must set that directory name correctly.
Make target.c compile if DEBUG is set.

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Mon Nov 10 19:23:22 1997 UTC (16 years, 9 months ago) by thorpej
Branch: netbsd-1-3
Changes since 1.2.2.2: +185 -25 lines
Diff to previous 1.2.2.2 (colored)

Sync w/ trunk.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Nov 9 12:47:09 1997 UTC (16 years, 9 months ago) by jonathan
Branch: MAIN
Changes since 1.7: +185 -25 lines
Diff to previous 1.7 (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.2.2.2 / (download) - annotate - [select for diffs], Thu Nov 6 00:47:52 1997 UTC (16 years, 9 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.2.2.1: +406 -0 lines
Diff to previous 1.2.2.1 (colored)

Pull rev 1.3 through 1.7 up from trunk (jonathan)

Revision 1.7 / (download) - annotate - [select for diffs], Wed Nov 5 07:28:34 1997 UTC (16 years, 9 months ago) by jonathan
Branch: MAIN
Changes since 1.6: +63 -6 lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Tue Nov 4 01:39:07 1997 UTC (16 years, 9 months ago) by phil
Branch: MAIN
Changes since 1.5: +5 -4 lines
Diff to previous 1.5 (colored)

- extract_dist now uses dist_list to know which to extract
- Added -r rel flag to change the release tag on the tar files.
- Added Usage
- Fixed a menu bug (missing exit)
- Made target_expand available to all functions to produce correct
	file names.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Nov 3 09:47:00 1997 UTC (16 years, 9 months ago) by jonathan
Branch: MAIN
Changes since 1.4: +82 -23 lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Mon Nov 3 02:38:52 1997 UTC (16 years, 9 months ago) by jonathan
Branch: MAIN
Changes since 1.3: +85 -20 lines
Diff to previous 1.3 (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.3 / (download) - annotate - [select for diffs], Sun Nov 2 23:43:13 1997 UTC (16 years, 9 months ago) by jonathan
Branch: MAIN
Changes since 1.2: +31 -1 lines
Diff to previous 1.2 (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.2.2.1, Sun Nov 2 08:30:39 1997 UTC (16 years, 9 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.2: +0 -194 lines
FILE REMOVED

file target.c was added on branch netbsd-1-3 on 1997-11-06 00:47:52 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Sun Nov 2 08:30:39 1997 UTC (16 years, 9 months ago) by jonathan
Branch: MAIN
Branch point for: netbsd-1-3
Changes since 1.1: +6 -7 lines
Diff to previous 1.1 (colored)

copyright boilerplate (oops)

Revision 1.1 / (download) - annotate - [select for diffs], Sun Nov 2 08:12:06 1997 UTC (16 years, 9 months ago) by jonathan
Branch: MAIN

Add target path-prefixing code.  Hide whethers the installation target
disk is at /mnt or / from the rest of sysinst.

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>