The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


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

Rebase to HEAD as of a few days ago.

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

Rebase.

Revision 1.134, 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.133: +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.132.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 02:57:53 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.132: +3 -3 lines
Diff to previous 1.132 (colored) to selected 1.54.2.1 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.130.2.1.2.1 / (download) - annotate - [select for diffs], Thu Nov 1 16:44:52 2012 UTC (11 years, 5 months ago) by matt
Branch: matt-nb6-plus
Changes since 1.130.2.1: +3 -3 lines
Diff to previous 1.130.2.1 (colored) next main 1.130.2.2 (colored) to selected 1.54.2.1 (colored)

sync with netbsd-6-0-RELEASE.

Revision 1.127.4.3 / (download) - annotate - [select for diffs], Tue Oct 30 18:48:54 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.127.4.2: +3 -3 lines
Diff to previous 1.127.4.2 (colored) to branchpoint 1.127 (colored) next main 1.128 (colored) to selected 1.54.2.1 (colored)

sync with head

Revision 1.130.2.2 / (download) - annotate - [select for diffs], Mon Oct 1 17:43:00 2012 UTC (11 years, 6 months ago) by riz
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-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
Changes since 1.130.2.1: +3 -3 lines
Diff to previous 1.130.2.1 (colored) to branchpoint 1.130 (colored) next main 1.131 (colored) to selected 1.54.2.1 (colored)

Pull up following revision(s) (requested by jdf in ticket #570):
	distrib/utils/sysinst/net.c: revision 1.133
Prevent sysinst from setting an fqdn in rc.conf when the user entered no
domain (i.e., sets only the hostname).  Fix for PR install/46946.

Revision 1.133 / (download) - annotate - [select for diffs], Sun Sep 23 17:37:51 2012 UTC (11 years, 6 months ago) by jdf
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, 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-earlyentropy
Changes since 1.132: +3 -3 lines
Diff to previous 1.132 (colored) to selected 1.54.2.1 (colored)

Prevent sysinst from setting an fqdn in rc.conf when the user entered no domain
(i.e., sets only the hostname).  Fix for PR install/46946.

Revision 1.127.4.2 / (download) - annotate - [select for diffs], Wed May 23 10:07:20 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.127.4.1: +9 -7 lines
Diff to previous 1.127.4.1 (colored) to branchpoint 1.127 (colored) to selected 1.54.2.1 (colored)

sync with head.

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Thu May 17 18:57:11 2012 UTC (11 years, 11 months ago) by sborrill
Branch: netbsd-6
CVS Tags: netbsd-6-0-RC2, netbsd-6-0-RC1
Branch point for: matt-nb6-plus
Changes since 1.130: +88 -31 lines
Diff to previous 1.130 (colored) to selected 1.54.2.1 (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.132 / (download) - annotate - [select for diffs], Tue May 1 18:28:47 2012 UTC (11 years, 11 months ago) by riz
Branch: MAIN
CVS Tags: yamt-pagecache-base5
Branch point for: tls-maxphys
Changes since 1.131: +9 -7 lines
Diff to previous 1.131 (colored) to selected 1.54.2.1 (colored)

Check for del_rc_conf() == 0, not !del_rc_conf(), and fix a couple of
instances where the check was wrong.  sysinst now properly saves dhcp
and host config again.

Revision 1.127.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:02:50 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.127: +106 -47 lines
Diff to previous 1.127 (colored) to selected 1.54.2.1 (colored)

sync with head

Revision 1.131 / (download) - annotate - [select for diffs], Fri Apr 6 23:48:54 2012 UTC (12 years ago) by riz
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.130: +85 -30 lines
Diff to previous 1.130 (colored) to selected 1.54.2.1 (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.130 / (download) - annotate - [select for diffs], Tue Jan 10 21:02:47 2012 UTC (12 years, 3 months ago) by gson
Branch: MAIN
CVS Tags: netbsd-6-base
Branch point for: netbsd-6
Changes since 1.129: +12 -7 lines
Diff to previous 1.129 (colored) to selected 1.54.2.1 (colored)

Add support for installing source sets as discussed on tech-install,
with improved German translations from Martin Husemann and Julian
Djamil Fagir.  French, Spanish, and Polish translations are
still needed.  OK christos, riz.

Revision 1.129 / (download) - annotate - [select for diffs], Mon Jan 9 02:52:50 2012 UTC (12 years, 3 months ago) by riz
Branch: MAIN
Changes since 1.128: +11 -12 lines
Diff to previous 1.128 (colored) to selected 1.54.2.1 (colored)

Copy resolv.conf into target even if it was created by DHCP, since in
that case, it will be replaced on next boot anyway.

Revision 1.128 / (download) - annotate - [select for diffs], Thu Jan 5 21:29:24 2012 UTC (12 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.127: +3 -3 lines
Diff to previous 1.127 (colored) to selected 1.54.2.1 (colored)

eliminate useless booleans and use the file pointers as conditionals.

Revision 1.127 / (download) - annotate - [select for diffs], Mon Apr 4 08:30:13 2011 UTC (13 years ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache
Changes since 1.126: +8 -12 lines
Diff to previous 1.126 (colored) to selected 1.54.2.1 (colored)

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

Revision 1.117.8.2.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 05:20:43 2010 UTC (13 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.117.8.2: +25 -6 lines
Diff to previous 1.117.8.2 (colored) next main 1.117.8.3 (colored) to selected 1.54.2.1 (colored)

sync to netbsd-5

Revision 1.126 / (download) - annotate - [select for diffs], Mon Feb 1 00:39:03 2010 UTC (14 years, 2 months ago) by ahoka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.125: +13 -12 lines
Diff to previous 1.125 (colored) to selected 1.54.2.1 (colored)

Make it proper KNF as it should have been done in my previous commit.

Revision 1.125 / (download) - annotate - [select for diffs], Mon Feb 1 00:06:18 2010 UTC (14 years, 2 months ago) by ahoka
Branch: MAIN
Changes since 1.124: +11 -14 lines
Diff to previous 1.124 (colored) to selected 1.54.2.1 (colored)

Remove duplicate sys/sysctl.h inclusion and put includes in alpabetic
order.

Revision 1.117.8.3 / (download) - annotate - [select for diffs], Sat Jan 16 17:43:34 2010 UTC (14 years, 3 months ago) by bouyer
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, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.117.8.2: +25 -6 lines
Diff to previous 1.117.8.2 (colored) to branchpoint 1.117 (colored) next main 1.118 (colored) to selected 1.54.2.1 (colored)

Pull up following revision(s) (requested by martin in ticket #1242):
	distrib/utils/sysinst/net.c: revision 1.124
Use the proper structs for ioctls to fetch network configuration.
Might fix PR 42436.

Revision 1.124 / (download) - annotate - [select for diffs], Wed Jan 13 07:48:57 2010 UTC (14 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.123: +25 -6 lines
Diff to previous 1.123 (colored) to selected 1.54.2.1 (colored)

Use the proper structs for ioctls to fetch network configuration.
Might fix PR 42436.

Revision 1.123 / (download) - annotate - [select for diffs], Fri Oct 16 19:01:03 2009 UTC (14 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.122: +9 -4 lines
Diff to previous 1.122 (colored) to selected 1.54.2.1 (colored)

Allow setting an empty base directory. FTP server like tnftpd do not
allow ftp://foo//bar and similar URLs.

Revision 1.121.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:17:55 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.121: +40 -58 lines
Diff to previous 1.121 (colored) next main 1.122 (colored) to selected 1.54.2.1 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.122 / (download) - annotate - [select for diffs], Tue Apr 7 11:49:18 2009 UTC (15 years ago) by joerg
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.121: +40 -58 lines
Diff to previous 1.121 (colored) to selected 1.54.2.1 (colored)

Change ramdisks from dhclient to dhcpcd and add corresponding glue to
sysinst. For amd64, the crunchgen binary shrinks by 150KB uncompresssed,
60KB compressed.

Revision 1.117.8.2 / (download) - annotate - [select for diffs], Thu Jan 22 22:18:26 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: 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-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.117.8.1: +24 -11 lines
Diff to previous 1.117.8.1 (colored) to branchpoint 1.117 (colored) to selected 1.54.2.1 (colored)

Pull up following revision(s) (requested by christos in ticket #300):
	distrib/utils/sysinst/net.c: revision 1.121
Don't shoot self in the foot if / is on NFS.

Revision 1.117.8.1 / (download) - annotate - [select for diffs], Thu Jan 22 22:13:32 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
Changes since 1.117: +43 -2 lines
Diff to previous 1.117 (colored) to selected 1.54.2.1 (colored)

Pull up following revision(s) (requested by christos in ticket #300):
	distrib/utils/sysinst/msg.mi.de: revision 1.44
	distrib/utils/sysinst/msg.mi.en: revision 1.150
	distrib/utils/sysinst/msg.mi.es: revision 1.22
	distrib/utils/sysinst/msg.mi.fr: revision 1.102
	distrib/utils/sysinst/msg.mi.pl: revision 1.61
	distrib/utils/sysinst/net.c: revision 1.118
add a primitive "accept the license" for ipw and iwi. XXX: Needs translations.

Revision 1.121 / (download) - annotate - [select for diffs], Tue Nov 25 14:25:20 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.120: +24 -11 lines
Diff to previous 1.120 (colored) to selected 1.54.2.1 (colored)

Don't shoot self in the foot if / is on NFS.

Revision 1.120 / (download) - annotate - [select for diffs], Fri Nov 21 15:31:20 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.119: +10 -1 lines
Diff to previous 1.119 (colored) to selected 1.54.2.1 (colored)

Don't ask for set location if:

- installing from CD-ROM or NFS
- and the root file system is of that type
- and the root file system contains sets

Revision 1.119 / (download) - annotate - [select for diffs], Thu Nov 6 15:30:23 2008 UTC (15 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.118: +2 -1 lines
Diff to previous 1.118 (colored) to selected 1.54.2.1 (colored)

make the eula acceptance permanent by adding it to sysctl.conf. From Anon Ymous

Revision 1.118 / (download) - annotate - [select for diffs], Wed Nov 5 22:58:37 2008 UTC (15 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.117: +43 -2 lines
Diff to previous 1.117 (colored) to selected 1.54.2.1 (colored)

add a primitive "accept the license" for ipw and iwi. XXX: Needs translations.

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

Sync with HEAD.

Revision 1.116.12.1 / (download) - annotate - [select for diffs], Thu Apr 3 13:54:14 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.116: +2 -1 lines
Diff to previous 1.116 (colored) to selected 1.54.2.1 (colored)

Sync with HEAD.

Revision 1.117 / (download) - annotate - [select for diffs], Sat Mar 29 15:19:53 2008 UTC (16 years ago) by reed
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, netbsd-5-base, mjf-devfs2-base, matt-mips64-base2, hpcarm-cleanup-nbase
Branch point for: netbsd-5
Changes since 1.116: +2 -1 lines
Diff to previous 1.116 (colored) to selected 1.54.2.1 (colored)

Reset DHCP values before use.  If you first chose DHCP, then later
chose manual, the generated rc.conf has dhclient details instead
of defaultroute.  (Noticed this when dhclient ran successfully,
but network failed so I entered network settings manually.)
Now only defines dhclient rc.conf variables when DHCP is used
else defines the defaultroute.

Revision 1.113.2.2.2.1 / (download) - annotate - [select for diffs], Sun Jan 6 05:00:37 2008 UTC (16 years, 3 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.113.2.2: +2 -2 lines
Diff to previous 1.113.2.2 (colored) next main 1.113.2.3 (colored) to selected 1.54.2.1 (colored)

Catch up to netbsd-4.0 release.

Revision 1.113.2.3 / (download) - annotate - [select for diffs], Wed Oct 24 22:19:08 2007 UTC (16 years, 5 months ago) by xtraeme
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-1-RELEASE, netbsd-4-0
Changes since 1.113.2.2: +1 -1 lines
Diff to previous 1.113.2.2 (colored) to branchpoint 1.113 (colored) next main 1.114 (colored) to selected 1.54.2.1 (colored)

Pull up following revision(s) (requested by jmmv in ticket #940):
	distrib/utils/sysinst/net.c: revision 1.116
Use get_media_subtype_string instead of get_media_mode_string to determine
the card's current media type.  Otherwise it always defaults to 'autoselect'
which is not supported by all cards (e.g. cs(4) in NetBSD/shark).
This was causing problems when configuring an interface with dhclient, as
sysinst could incorrectly reset the media type (the net_media variable) to
'autoselect', writing incorrect ifconfig.<if> files in the target file system.

Revision 1.116.14.2 / (download) - annotate - [select for diffs], Sun Jul 29 20:44:27 2007 UTC (16 years, 8 months ago) by jmmv
Branch: matt-mips64
Changes since 1.116.14.1: +1188 -0 lines
Diff to previous 1.116.14.1 (colored) to branchpoint 1.116 (colored) next main 1.117 (colored) to selected 1.54.2.1 (colored)

Use get_media_subtype_string instead of get_media_mode_string to determine
the card's current media type.  Otherwise it always defaults to 'autoselect'
which is not supported by all cards (e.g. cs(4) in NetBSD/shark).

This was causing problems when configuring an interface with dhclient, as
sysinst could incorrectly reset the media type (the net_media variable) to
'autoselect', writing incorrect ifconfig.<if> files in the target file
system.

Revision 1.116.14.1, Sun Jul 29 20:44:26 2007 UTC (16 years, 8 months ago) by jmmv
Branch: matt-mips64
Changes since 1.116: +0 -1188 lines
FILE REMOVED

file net.c was added on branch matt-mips64 on 2007-07-29 20:44:27 +0000

Revision 1.116 / (download) - annotate - [select for diffs], Sun Jul 29 20:44:26 2007 UTC (16 years, 8 months ago) by jmmv
Branch: MAIN
CVS Tags: pc532-eol-2008, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: mjf-devfs2, matt-mips64
Changes since 1.115: +2 -2 lines
Diff to previous 1.115 (colored) to selected 1.54.2.1 (colored)

Use get_media_subtype_string instead of get_media_mode_string to determine
the card's current media type.  Otherwise it always defaults to 'autoselect'
which is not supported by all cards (e.g. cs(4) in NetBSD/shark).

This was causing problems when configuring an interface with dhclient, as
sysinst could incorrectly reset the media type (the net_media variable) to
'autoselect', writing incorrect ifconfig.<if> files in the target file
system.

Revision 1.113.2.2 / (download) - annotate - [select for diffs], Sat Mar 31 16:26:02 2007 UTC (17 years ago) by bouyer
Branch: netbsd-4
CVS Tags: netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1
Branch point for: wrstuden-fixsa
Changes since 1.113.2.1: +1 -1 lines
Diff to previous 1.113.2.1 (colored) to branchpoint 1.113 (colored) to selected 1.54.2.1 (colored)

Pull up following revision(s) (requested by is in ticket #540):
	distrib/utils/sysinst/net.c: revision 1.115
Fix typo, which prevented DHCP network configuration from discovering the
machine name.

Revision 1.105.2.3 / (download) - annotate - [select for diffs], Sat Mar 31 14:12:33 2007 UTC (17 years ago) by bouyer
Branch: netbsd-3
Changes since 1.105.2.2: +1 -1 lines
Diff to previous 1.105.2.2 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored) to selected 1.54.2.1 (colored)

Pull up following revision(s) (requested by is in ticket #1721):
	distrib/utils/sysinst/net.c: revision 1.115
Fix typo, which prevented DHCP network configuration from discovering the
machine name.

Revision 1.100.2.1.2.2 / (download) - annotate - [select for diffs], Sat Mar 31 12:47:00 2007 UTC (17 years ago) by bouyer
Branch: netbsd-2
Changes since 1.100.2.1.2.1: +2 -2 lines
Diff to previous 1.100.2.1.2.1 (colored) to branchpoint 1.100.2.1 (colored) next main 1.101 (colored) to selected 1.54.2.1 (colored)

Pull up following revision(s) (requested by is in ticket #11225):
	distrib/utils/sysinst/net.c: revision 1.115
Fix typo, which prevented DHCP network configuration from discovering the
machine name.

Revision 1.115 / (download) - annotate - [select for diffs], Fri Mar 23 12:51:03 2007 UTC (17 years ago) by is
Branch: MAIN
Changes since 1.114: +2 -2 lines
Diff to previous 1.114 (colored) to selected 1.54.2.1 (colored)

Fix typo, which prevented DHCP network configuration from discovering the
machine name.

Revision 1.113.2.1 / (download) - annotate - [select for diffs], Sat Dec 9 11:44:42 2006 UTC (17 years, 4 months ago) by bouyer
Branch: netbsd-4
Changes since 1.113: +3 -1 lines
Diff to previous 1.113 (colored) to selected 1.54.2.1 (colored)

Pull up following revision(s) (requested by martin in ticket #256):
	distrib/utils/sysinst/net.c: revision 1.114
If we do DHCP (so our ifconfig.* file only has a "up" line), still
write media selection information, if the user chose anything special.
Pointed out by Georg Schwarz in PR 31448.

Revision 1.114 / (download) - annotate - [select for diffs], Tue Dec 5 10:21:09 2006 UTC (17 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.113: +3 -1 lines
Diff to previous 1.113 (colored) to selected 1.54.2.1 (colored)

If we do DHCP (so our ifconfig.* file only has a "up" line), still
write media selection information, if the user chose anything special.
Pointed out by Georg Schwarz in PR 31448.

Revision 1.113 / (download) - annotate - [select for diffs], Mon Oct 23 22:42:33 2006 UTC (17 years, 5 months ago) by he
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.112: +3 -5 lines
Diff to previous 1.112 (colored) to selected 1.54.2.1 (colored)

Get rid of the tests with (now) empty bodies, instead just ignore the
return value from sysctl().

Revision 1.112 / (download) - annotate - [select for diffs], Fri Sep 29 10:37:49 2006 UTC (17 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.111: +11 -10 lines
Diff to previous 1.111 (colored) to selected 1.54.2.1 (colored)

Ignored interfaces should be ignored, wether they are IFF_UP or not.
For example eon0 is always up after boot, but completely useless.

Revision 1.111 / (download) - annotate - [select for diffs], Fri Sep 29 09:56:04 2006 UTC (17 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored) to selected 1.54.2.1 (colored)

If we ask "is any of these interfaces connected?" we want the answer to be
"yes", and abort if it is "no" - not vice versa.
XXX - when returning to the utilities menu loop, the menu message should
be output again, I think. I couldn't figure out how that is supposed to
be done though.

Revision 1.105.2.2 / (download) - annotate - [select for diffs], Sat Sep 16 10:26:09 2006 UTC (17 years, 7 months ago) by ghen
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.105.2.1: +1 -1 lines
Diff to previous 1.105.2.1 (colored) to branchpoint 1.105 (colored) to selected 1.54.2.1 (colored)

Pull up following revision(s) (requested by martin in ticket #1509):
	distrib/utils/sysinst/net.c: revision 1.110
	distrib/utils/sysinst/geom.c: revision 1.9
The "request" arg of ioctl(2) is unsigned long, not int!
Sign extended requests do not work on archs with sizeof(long) > sizeof(int).

Revision 1.109.2.1 / (download) - annotate - [select for diffs], Fri Aug 25 05:28:12 2006 UTC (17 years, 7 months ago) by riz
Branch: abandoned-netbsd-4
Changes since 1.109: +2 -2 lines
Diff to previous 1.109 (colored) next main 1.110 (colored) to selected 1.54.2.1 (colored)

Pull up following revision(s) (requested by martin in ticket #39):
	distrib/utils/sysinst/net.c: revision 1.110
	distrib/utils/sysinst/geom.c: revision 1.9
The "request" arg of ioctl(2) is unsigned long, not int!
Sign extended requests do not work on archs with sizeof(long) > sizeof(int).

Revision 1.110 / (download) - annotate - [select for diffs], Sat Aug 19 21:18:40 2006 UTC (17 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.109: +2 -2 lines
Diff to previous 1.109 (colored) to selected 1.54.2.1 (colored)

The "request" arg of ioctl(2) is unsigned long, not int!
Sign extended requests do not work on archs with sizeof(long) > sizeof(int).

Revision 1.109 / (download) - annotate - [select for diffs], Sat Feb 25 20:21:00 2006 UTC (18 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Changes since 1.108: +1 -3 lines
Diff to previous 1.108 (colored) to selected 1.54.2.1 (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.108 / (download) - annotate - [select for diffs], Sun Jan 15 20:34:20 2006 UTC (18 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.107: +3 -2 lines
Diff to previous 1.107 (colored) to selected 1.54.2.1 (colored)

Avoid having "//" in the middle of the transfer directory name.
(But ensure there is at least one.)

Revision 1.107 / (download) - annotate - [select for diffs], Thu Jan 12 22:02:44 2006 UTC (18 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.106: +104 -143 lines
Diff to previous 1.106 (colored) to selected 1.54.2.1 (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.105.2.1 / (download) - annotate - [select for diffs], Mon Sep 19 21:03:13 2005 UTC (18 years, 7 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RC2, netbsd-3-1-RC1, 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
Changes since 1.105: +176 -109 lines
Diff to previous 1.105 (colored) to selected 1.54.2.1 (colored)

Pull up following revision(s) (requested by dsl in ticket #803):
	distrib/utils/sysinst/msg.mi.pl: revision 1.46
	distrib/utils/sysinst/net.c: revision 1.106
	distrib/utils/sysinst/msg.mi.en: revision 1.137
	distrib/utils/sysinst/msg.mi.de: revision 1.18
	distrib/utils/sysinst/msg.mi.fr: revision 1.84
Apply patch from Mikhail Zakharov that enables slip based installation.
From: http://www.onlamp.com/pub/a/bsd/2005/05/05/hardware_rescue.html

Revision 1.100.2.1.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.100.2.1: +277 -205 lines
Diff to previous 1.100.2.1 (colored) to selected 1.54.2.1 (colored)

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

Revision 1.106 / (download) - annotate - [select for diffs], Sun May 8 19:46:33 2005 UTC (18 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.105: +176 -109 lines
Diff to previous 1.105 (colored) to selected 1.54.2.1 (colored)

Apply patch from Mikhail Zakharov that enables slip based installation.
From: http://www.onlamp.com/pub/a/bsd/2005/05/05/hardware_rescue.html

Revision 1.105 / (download) - annotate - [select for diffs], Thu Nov 11 22:10:54 2004 UTC (19 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.104: +123 -117 lines
Diff to previous 1.104 (colored) to selected 1.54.2.1 (colored)

Get network some interface details by using the relevant ioctls (not
    trying to parse the output of ifconfig)
Loop if the user specifies an unsupported media type.
Run ifocnfig to set the media type (any anything else the user typed in)
    before running dhcp to assign an address.
Correctly extract the defualt gateway from output of 'route -n show'
Extract nameserver from resolv.conf without using get_command_out(),
    delete get_command_out().
Fixes (at least) PR install/11880, install/12706

Revision 1.104 / (download) - annotate - [select for diffs], Thu Nov 11 21:36:23 2004 UTC (19 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.103: +23 -26 lines
Diff to previous 1.103 (colored) to selected 1.54.2.1 (colored)

Make url_decode() return a pointer to the end of the string, and take a
char * limit (not a length) to simplify buffer overrun avoidance.

Revision 1.103 / (download) - annotate - [select for diffs], Thu Nov 11 21:24:41 2004 UTC (19 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.102: +5 -5 lines
Diff to previous 1.102 (colored) to selected 1.54.2.1 (colored)

Add support for fetching using http (by specifying http URL to ftp)
Remove a 'Press <enter> to continue' message that was accidently left
in by a previous commit.
Fixes PR/18555 (and a recent discussion on a mailing list)

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Mon Jun 7 10:20:57 2004 UTC (19 years, 10 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.100: +85 -73 lines
Diff to previous 1.100 (colored) next main 1.101 (colored) to selected 1.54.2.1 (colored)

Pull up revision 1.102 (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.102 / (download) - annotate - [select for diffs], Sat Jun 5 21:19:00 2004 UTC (19 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.101: +85 -73 lines
Diff to previous 1.101 (colored) to selected 1.54.2.1 (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.101 / (download) - annotate - [select for diffs], Sat May 15 21:48:09 2004 UTC (19 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.100: +6 -4 lines
Diff to previous 1.100 (colored) to selected 1.54.2.1 (colored)

Reduce the number of times <enter> must be typed during network setup.

Revision 1.100 / (download) - annotate - [select for diffs], Sun Nov 30 14:36:43 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.99: +18 -21 lines
Diff to previous 1.99 (colored) to selected 1.54.2.1 (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.99 / (download) - annotate - [select for diffs], Wed Nov 19 00:16:49 2003 UTC (20 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.98: +5 -5 lines
Diff to previous 1.98 (colored) to selected 1.54.2.1 (colored)

ping generates output, don't wait for user to acknowledge it.

Revision 1.98 / (download) - annotate - [select for diffs], Sat Nov 15 12:53:34 2003 UTC (20 years, 5 months ago) by sekiya
Branch: MAIN
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) to selected 1.54.2.1 (colored)

A few sysinst fixes:

	* use cd0a rather than cd0[cd] as the CDROM installation device.
	  This fixes problems with platforms that install from iso9660 images
	  encapsulated in a partition, and should not affect platforms that
	  don't.
	* add RUN_PROGRESS to the run_prog() flags for ftp installs.

Okay'ed by David Laight.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Nov 4 16:27:22 2003 UTC (20 years, 5 months ago) by perry
Branch: MAIN
Changes since 1.96: +8 -4 lines
Diff to previous 1.96 (colored) to selected 1.54.2.1 (colored)

resolv.conf:
Make sure that there is a domain set before printing a "search" line.
hosts:
Add domain to the second "localhost" line if there is a domain set.
Add domain to hostname (in addition to bare version) if there is a
domain set.

Patches from William Simpson, PR 21999

Revision 1.96 / (download) - annotate - [select for diffs], Tue Nov 4 01:53:28 2003 UTC (20 years, 5 months ago) by perry
Branch: MAIN
Changes since 1.95: +43 -30 lines
Diff to previous 1.95 (colored) to selected 1.54.2.1 (colored)

rc.conf's "hostname" variable needs to be fully qualified -- change
the code so that it is. From William Simpson in PR 22044

Revision 1.95 / (download) - annotate - [select for diffs], Sun Oct 19 20:17:32 2003 UTC (20 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.94: +3 -4 lines
Diff to previous 1.94 (colored) to selected 1.54.2.1 (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.94 / (download) - annotate - [select for diffs], Sun Aug 10 08:28:09 2003 UTC (20 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored) to selected 1.54.2.1 (colored)

return type of sizeof() is size_t not long.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Aug 6 13:56:59 2003 UTC (20 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.92: +30 -26 lines
Diff to previous 1.92 (colored) to selected 1.54.2.1 (colored)

use bounded string op

Revision 1.92 / (download) - annotate - [select for diffs], Sun Jul 27 21:09:57 2003 UTC (20 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.91: +10 -9 lines
Diff to previous 1.91 (colored) to selected 1.54.2.1 (colored)

Stop (attempted) coredump when ftp/nfs install attempted.
(incorrect empty strings check for active interfaces)

Revision 1.91 / (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.90: +6 -6 lines
Diff to previous 1.90 (colored) to selected 1.54.2.1 (colored)

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

Revision 1.90 / (download) - annotate - [select for diffs], Tue Jul 22 11:45:16 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.89: +2 -2 lines
Diff to previous 1.89 (colored) to selected 1.54.2.1 (colored)

Specify username+password to ftp even when username is 'ftp'.
Only use 'ftp -a ...' when the username is ftp and the password is null.
Fixed PR install/13656

Revision 1.89 / (download) - annotate - [select for diffs], Tue Jul 22 08:30:10 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.88: +2 -1 lines
Diff to previous 1.88 (colored) to selected 1.54.2.1 (colored)

Output a messge before the 5 second delay while the network comes up.
Ask user before deleting set files (fixes PR/7190).

Revision 1.88 / (download) - annotate - [select for diffs], Sat Jul 19 22:07:37 2003 UTC (20 years, 9 months ago) by abs
Branch: MAIN
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored) to selected 1.54.2.1 (colored)

Make net_namesvr6 extern again to fix compilation if INET6 is defined.

Revision 1.87 / (download) - annotate - [select for diffs], Fri Jul 18 09:42:59 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.86: +204 -137 lines
Diff to previous 1.86 (colored) to selected 1.54.2.1 (colored)

Pull local data here and make it static.
Remove one or two fixed length strings (use malloc etc instead).
Change a lot of 'if (strlen(x) == 0)' to 'if (x[0] === 0)'.
Let user skip network config if any non-loopback interfaces are UP.
Always free() buffer allocated by collect(), could be a massive leak.
Whitespace changes.

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

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

Revision 1.85 / (download) - annotate - [select for diffs], Wed Jun 11 21:35:36 2003 UTC (20 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored) to selected 1.54.2.1 (colored)

rototil of the set selection menu
I've also made the set selection happen first.  This lets me test it!
also measn the selected sets could be used in the disk partition code.
Removed the 'with X' disk layout question (now too late to change the sets).

Revision 1.84 / (download) - annotate - [select for diffs], Tue Jun 3 11:54:49 2003 UTC (20 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.83: +16 -16 lines
Diff to previous 1.83 (colored) to selected 1.54.2.1 (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.76.2.4 / (download) - annotate - [select for diffs], Fri Feb 14 02:51:41 2003 UTC (21 years, 2 months ago) by jmc
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, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.76.2.3: +3 -0 lines
Diff to previous 1.76.2.3 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored) to selected 1.54.2.1 (colored)

Pullup rev 1.83 (requested by grant in ticket #1165)
 After dhcp'ing rerun the interface get routine to pick up any
 new values like IP/netmask/etc. Fixes PR#20133

Revision 1.83 / (download) - annotate - [select for diffs], Tue Feb 11 11:29:35 2003 UTC (21 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.82: +4 -1 lines
Diff to previous 1.82 (colored) to selected 1.54.2.1 (colored)

After dhcp'ing rerun the interface get routine to pick up any new values
like IP/netmask/etc. Fixes PR#20133

Revision 1.82 / (download) - annotate - [select for diffs], Mon Feb 10 02:24:27 2003 UTC (21 years, 2 months ago) by shin
Branch: MAIN
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored) to selected 1.54.2.1 (colored)

fix typo in comment.

Revision 1.81 / (download) - annotate - [select for diffs], Fri Jan 10 20:00:28 2003 UTC (21 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.80: +15 -18 lines
Diff to previous 1.80 (colored) to selected 1.54.2.1 (colored)

pass lint[pass1]

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

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

Revision 1.76.2.3 / (download) - annotate - [select for diffs], Thu Jun 20 02:43:28 2002 UTC (21 years, 10 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Changes since 1.76.2.2: +1 -1 lines
Diff to previous 1.76.2.2 (colored) to branchpoint 1.76 (colored) to selected 1.54.2.1 (colored)

Pull up revision 1.79 (requested by itojun in ticket #321):
logic mistake in 1.60 -> 1.61; ask media type if needed.
From: Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>

Revision 1.79 / (download) - annotate - [select for diffs], Wed Jun 19 16:30:52 2002 UTC (21 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.78: +2 -2 lines
Diff to previous 1.78 (colored) to selected 1.54.2.1 (colored)

logic mistake in 1.60 -> 1.61; ask media type if needed.
From: Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>

Revision 1.76.2.2 / (download) - annotate - [select for diffs], Thu Jun 6 09:58:35 2002 UTC (21 years, 10 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.76.2.1: +1 -6 lines
Diff to previous 1.76.2.1 (colored) to branchpoint 1.76 (colored) to selected 1.54.2.1 (colored)

Pull up revision 1.78 (requested by lukem in ticket #188):
- Replace make(1) and -D FTP_HOST with SYSINST_FTP_HOST.
  Defaults to "ftp.netbsd.org"
- Replace make(1) and -D FTP_DIR with SYSINST_FTP_DIR.
  Defaults to "pub/NetBSD/NetBSD-" + VER + "/" + MACH.
  (FTP_DIR used to override "pub/NetBSD/NetBSD-", which meant the
  path name had to contain the release version in it)
- Add make(1) and -D SYSINST_CDROM_DIR.
  Defaults to "/" + mach.
- only append ftp_prefix to ftp_dir and cdrom_dir once, just after
  the options are parsed.  Do this in newly added set_defaults().

Revision 1.78 / (download) - annotate - [select for diffs], Thu Jun 6 09:53:22 2002 UTC (21 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.77: +1 -6 lines
Diff to previous 1.77 (colored) to selected 1.54.2.1 (colored)

- Replace make(1) and -D FTP_HOST with SYSINST_FTP_HOST.
  Defaults to "ftp.netbsd.org"
- Replace make(1) and -D FTP_DIR with SYSINST_FTP_DIR.
  Defaults to "pub/NetBSD/NetBSD-" + VER + "/" + MACH.
  (FTP_DIR used to override "pub/NetBSD/NetBSD-", which meant the
  path name had to contain the release version in it)
- Add make(1) and -D SYSINST_CDROM_DIR.
  Defaults to "/" + mach.
- only append ftp_prefix to ftp_dir and cdrom_dir once, just after
  the options are parsed.  Do this in newly added set_defaults().

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Fri May 24 22:37:40 2002 UTC (21 years, 10 months ago) by perry
Branch: netbsd-1-6
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored) to selected 1.54.2.1 (colored)

resolve 1.6 pullup ticket #13, from itojun
pulls up revision number 1.77
Original commit message:

> remove obsolete comment.  use "!rtsol $int" instead of actual interface name.

Revision 1.77 / (download) - annotate - [select for diffs], Fri May 24 07:58:23 2002 UTC (21 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored) to selected 1.54.2.1 (colored)

remove obsolete comment.  use "!rtsol $int" instead of actual interface name.

Revision 1.58.2.5 / (download) - annotate - [select for diffs], Tue Feb 26 20:19:28 2002 UTC (22 years, 1 month ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.58.2.4: +15 -5 lines
Diff to previous 1.58.2.4 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored) to selected 1.54.2.1 (colored)

Pull up revision 1.76 (requested by he):
  Allow the user to continue the install even if sysinst thinks
  that the network configure failed (caused by e.g. failure of the
  default gateway to respond to ping).

Revision 1.76 / (download) - annotate - [select for diffs], Mon Feb 4 14:35:10 2002 UTC (22 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Changes since 1.75: +15 -5 lines
Diff to previous 1.75 (colored) to selected 1.54.2.1 (colored)

allow the user to continue the install, even if sysinst thinks that the
network has not been configured (due to what ever local condition that
causes ping to fail, or whatever.)  requested by kre in private email
many many months ago.

Revision 1.75 / (download) - annotate - [select for diffs], Thu Jun 7 12:34:55 2001 UTC (22 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.74: +6 -1 lines
Diff to previous 1.74 (colored) to selected 1.54.2.1 (colored)

wait a couple of seconds for the interface to go live, before calling ping.
fixes problem noted by gkm@petting-zoo.net where the interface was still
negotiating before ping failed, causing the network config to wrongly failed.

Revision 1.74 / (download) - annotate - [select for diffs], Mon May 7 11:49:52 2001 UTC (22 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.73: +27 -18 lines
Diff to previous 1.73 (colored) to selected 1.54.2.1 (colored)

use "!rtsol" for IPv6 interface autoconf.

XXX i did not use "!rtsol $int" because there could be problem with
shell script expansion ($int gets expanded too early).

Revision 1.73 / (download) - annotate - [select for diffs], Sun Apr 29 00:22:34 2001 UTC (22 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored) to selected 1.54.2.1 (colored)

Use the -2 option for the NFS mount. Install kernels might have
NFS_V2_ONLY to save space, and we're only reading anyway.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Apr 15 11:08:51 2001 UTC (23 years ago) by itojun
Branch: MAIN
Changes since 1.71: +50 -19 lines
Diff to previous 1.71 (colored) to selected 1.54.2.1 (colored)

write out IPv6 configuration to /etc/rc.conf and /etc/ifconfig.*

Revision 1.71 / (download) - annotate - [select for diffs], Tue Mar 6 09:22:40 2001 UTC (23 years, 1 month ago) by dogcow
Branch: MAIN
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored) to selected 1.54.2.1 (colored)

missed a \n after dhclient_flags=\"%s\".

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jan 14 02:38:15 2001 UTC (23 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.69: +39 -105 lines
Diff to previous 1.69 (colored) to selected 1.54.2.1 (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.69 / (download) - annotate - [select for diffs], Sun Jan 7 13:07:57 2001 UTC (23 years, 3 months ago) by jdc
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) to selected 1.54.2.1 (colored)

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

Revision 1.68 / (download) - annotate - [select for diffs], Sun Dec 31 13:08:05 2000 UTC (23 years, 3 months ago) by jdc
Branch: MAIN
Changes since 1.67: +20 -1 lines
Diff to previous 1.67 (colored) to selected 1.54.2.1 (colored)

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

Revision 1.67 / (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.66: +11 -11 lines
Diff to previous 1.66 (colored) to selected 1.54.2.1 (colored)

de-__P()-ify

Revision 1.66 / (download) - annotate - [select for diffs], Thu Dec 21 21:42:02 2000 UTC (23 years, 3 months ago) by jdc
Branch: MAIN
Changes since 1.65: +5 -20 lines
Diff to previous 1.65 (colored) to selected 1.54.2.1 (colored)

Don't output the termcap `cl' sequence.
XXX: do we really need to home the cursor here?
XXX: should we do clearok() instead or in addition?

Revision 1.65 / (download) - annotate - [select for diffs], Sun Dec 17 22:55:53 2000 UTC (23 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.64: +18 -3 lines
Diff to previous 1.64 (colored) to selected 1.54.2.1 (colored)

After confirming the network setup should be saved, make sure dhcp is enabled if it was used on install

Revision 1.58.2.4 / (download) - annotate - [select for diffs], Wed Oct 18 17:51:15 2000 UTC (23 years, 6 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.58.2.3: +22 -21 lines
Diff to previous 1.58.2.3 (colored) to branchpoint 1.58 (colored) to selected 1.54.2.1 (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.64 / (download) - annotate - [select for diffs], Wed Oct 11 23:47:56 2000 UTC (23 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.63: +20 -18 lines
Diff to previous 1.63 (colored) to selected 1.54.2.1 (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.63 / (download) - annotate - [select for diffs], Tue Sep 26 13:26:02 2000 UTC (23 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.62: +3 -4 lines
Diff to previous 1.62 (colored) to selected 1.54.2.1 (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.58.2.3 / (download) - annotate - [select for diffs], Wed Sep 20 21:51:38 2000 UTC (23 years, 7 months ago) by hubertf
Branch: netbsd-1-5
Changes since 1.58.2.2: +1 -2 lines
Diff to previous 1.58.2.2 (colored) to branchpoint 1.58 (colored) to selected 1.54.2.1 (colored)

Pull up rev. 1.62 to netbsd-1-5 branch, OK'd by thorpej:
 > Remove some stale debug code, OK'd by itojun

Revision 1.58.2.2 / (download) - annotate - [select for diffs], Wed Sep 20 21:48:45 2000 UTC (23 years, 7 months ago) by hubertf
Branch: netbsd-1-5
Changes since 1.58.2.1: +143 -103 lines
Diff to previous 1.58.2.1 (colored) to branchpoint 1.58 (colored) to selected 1.54.2.1 (colored)

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

revision 1.61
date: 2000/07/24 10:52:28;  author: itojun;  state: Exp;  lines: +140 -98
do not skip IPv6 configuration menu on dhcp configuration.

do not save address/netmask/default router, if we got them from dhcp.
(we shouldn't do that).  if we keep any of dhcp config into /etc, we shoul
update rc.conf to run dhcp again.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Sep 20 21:28:51 2000 UTC (23 years, 7 months ago) by hubertf
Branch: MAIN
Changes since 1.61: +1 -2 lines
Diff to previous 1.61 (colored) to selected 1.54.2.1 (colored)

Remove some stale debug code, OK'd by itojun

Revision 1.61 / (download) - annotate - [select for diffs], Mon Jul 24 10:52:28 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.60: +140 -98 lines
Diff to previous 1.60 (colored) to selected 1.54.2.1 (colored)

do not skip IPv6 configuration menu on dhcp configuration.

do not save address/netmask/default router, if we got them from dhcp.
(we shouldn't do that).  if we keep any of dhcp config into /etc, we shoul
update rc.conf to run dhcp again.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Jul 24 06:05:51 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.59: +4 -6 lines
Diff to previous 1.59 (colored) to selected 1.54.2.1 (colored)

run IPv6 configuration even if we use dhcp.  background:
- on a IPv6/v4 dual stack network, it makes more sense to configure both.
- also, many of IPv4/v6 dual stack network requires us to contacd DNS
  over IPv4 transport.
discussed with cyber@netbsd.org.
run IPv6 configuration even if we use dhcp.  background:
- on a IPv6/v4 dual stack network, it makes more sense to configure both.
- also, many of IPv4/v6 dual stack network requires us to contacd DNS
  over IPv4 transport.
discussed with cyber@netbsd.org.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Jul 24 06:05:51 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.59: +4 -6 lines
Diff to previous 1.59 (colored) to selected 1.54.2.1 (colored)

run IPv6 configuration even if we use dhcp.  background:
- on a IPv6/v4 dual stack network, it makes more sense to configure both.
- also, many of IPv4/v6 dual stack network requires us to contacd DNS
  over IPv4 transport.
discussed with cyber@netbsd.org.
run IPv6 configuration even if we use dhcp.  background:
- on a IPv6/v4 dual stack network, it makes more sense to configure both.
- also, many of IPv4/v6 dual stack network requires us to contacd DNS
  over IPv4 transport.
discussed with cyber@netbsd.org.

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Mon Jul 3 08:34:44 2000 UTC (23 years, 9 months ago) by itojun
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored) to selected 1.54.2.1 (colored)

pullup 1.58 -> 1.59 (approved by releng-1-5):

ping ff02::2 instead of ff02::9.  ff02::9 indicates RIPng capable interface,
which does not necessarily visible.  ff02::2 indicates routers.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Jul 2 15:07:52 2000 UTC (23 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored) to selected 1.54.2.1 (colored)

ping ff02::2 instead of ff02::9.  ff02::9 indicates RIPng capable interface,
which does not necessarily visible.  ff02::2 indicates routers.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Jun 18 23:50:04 2000 UTC (23 years, 10 months ago) by cyber
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.57: +156 -7 lines
Diff to previous 1.57 (colored) to selected 1.54.2.1 (colored)

dhclient support added
only invoked if dhclient is present on install image

Revision 1.57 / (download) - annotate - [select for diffs], Wed Jan 5 01:50:45 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.56: +4 -2 lines
Diff to previous 1.56 (colored) to selected 1.54.2.1 (colored)

fix non-inet6 compilation

Revision 1.56 / (download) - annotate - [select for diffs], Tue Jan 4 08:33:52 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.55: +223 -51 lines
Diff to previous 1.55 (colored) to selected 1.54.2.1 (colored)

enable IPv6 support in sysinst.  integration of work by ichiro@ichiro.org.
- IPv6 autoconfiguration
- IPv6 nameserver
TODO: french messages, dhcp

add -DINET6 into x_ifconfig.

Revision 1.54.2.1 / (download) - annotate - [selected], Mon Dec 27 18:28:43 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

Pull up to last week's -current.

Revision 1.38.2.5 / (download) - annotate - [select for diffs], Sun Oct 31 22:32:37 1999 UTC (24 years, 5 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.38.2.4: +3 -3 lines
Diff to previous 1.38.2.4 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored) to selected 1.54.2.1 (colored)

Pull up revision 1.55 (requested by he):
  Do not mislead users by inserting "lookup files bind" in
  /etc/resolv.conf; after we converted to nsswitch this is
  handled elsewhere.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Oct 29 19:45:20 1999 UTC (24 years, 5 months ago) by he
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.54.2.1 (colored)

No longer any point in inserting "lookup files bind"
in resolv.conf; after nsswitch implementation in libc
this will be inored here.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Sep 5 16:33:03 1999 UTC (24 years, 7 months ago) by mycroft
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.53: +3 -1 lines
Diff to previous 1.53 (colored) to selected 1.54.2.1 (colored)

Add `gif' and `faith' to the ignored pseudo-devices.

Revision 1.38.2.4 / (download) - annotate - [select for diffs], Tue Jul 6 23:56:51 1999 UTC (24 years, 9 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH001
Changes since 1.38.2.3: +27 -12 lines
Diff to previous 1.38.2.3 (colored) to branchpoint 1.38 (colored) to selected 1.54.2.1 (colored)

pullup 1.52->1.53 (cgd)

Revision 1.53 / (download) - annotate - [select for diffs], Sat Jul 3 09:02:23 1999 UTC (24 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.52: +27 -12 lines
Diff to previous 1.52 (colored) to selected 1.54.2.1 (colored)

From Alan Barrett <apb@iafrica.com>, in response to my response to his PR:
>Removing leading slashes in the url_encode() function is bad, because
>they might be part of a password, but somebody else had apparently made
>url_encode() do that.  Here's a patch that stops url_encode() from
>removing leading slashes, changes the encode_leading_slash code to
>fit in with that policy, adds some comments that should dissuade folk
>from removing leading slashes in the future, and fixes a bug where the
>encode_leading_slash code was not decrementing len.

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

pull up rev(s) 1.45-1.52 from trunk. (cgd)

Revision 1.52 / (download) - annotate - [select for diffs], Thu Jun 24 00:16:49 1999 UTC (24 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored) to selected 1.54.2.1 (colored)

replace "/sbin/ping -c 2 %s" with "/sbin/ping -v -c 5 -w 5 -o -n %s".
Shouldn't bother doing DNS lookups or wait a really long time,
should display verbose output and quit after the host has been
successfully pinged even once.  count bumped up to 5 to give boards
which take a while to do media autoselection time to do their thing.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Jun 23 22:55:14 1999 UTC (24 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.50: +31 -5 lines
Diff to previous 1.50 (colored) to selected 1.54.2.1 (colored)

don't make /etc/hosts's contents a message.  there's no point and it
makes some things harder, for instance... Deal correctly with the case
where the user-supplied hostname is already fully qualified with the
domain name they supplied.  Addresses PR#6955.

Revision 1.50 / (download) - annotate - [select for diffs], Tue Jun 22 18:47:07 1999 UTC (24 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: dynamic-messages-base, dynamic-messages
Changes since 1.49: +10 -4 lines
Diff to previous 1.49 (colored) to selected 1.54.2.1 (colored)

address the problems described in PR#7833 and its followups: ftp/nfs
installation would try to continue even if no networking interfaces found,
and, and, when that was fixed, instead of dropping back to the
pick-distribution-medium menu they'd drop all the way back to the opening
menu.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Jun 22 00:57:06 1999 UTC (24 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.48: +5 -3 lines
Diff to previous 1.48 (colored) to selected 1.54.2.1 (colored)

mark all calls to write 'CL' (the screen-clear escape sequence) to the
screen as XXX.  Where they were not followed by wclear(stdscr), add
wclear(stdscr).  Somebody was let out without adult supervision.  If i
were more adventurous, i'd remove the bits that output 'CL', but i'm not
gonna go there right now.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Jun 20 07:55:00 1999 UTC (24 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.47: +41 -10 lines
Diff to previous 1.47 (colored) to selected 1.54.2.1 (colored)

reimplement most of get_ifconfig_info() so that it only ignores network
pseudo-devices.  This is done by explicitly listing the driver names
(e.g. "lo") to ignore in an array in this file.  Right now, "eon", "gre",
"ipip", "lo", "nsip", "ppp", "sl", "strip", and "tun" are ignored.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Jun 20 06:42:05 1999 UTC (24 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored) to selected 1.54.2.1 (colored)

typos noticed in PR#7248

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

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

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jun 18 23:26:40 1999 UTC (24 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.44: +30 -15 lines
Diff to previous 1.44 (colored) to selected 1.54.2.1 (colored)

* when encoding an FTP url, if the path starts with a / put a %2F at the
  start of the URL so that the request will start from / (rather than
  relative to the login directory; makes things work better for
  non-anonymous FTP).  To make it clearer what's going on, make the
  default path (used to get distribution bits) relative.  (according
  to the 1.4 LAST_MINUTE file, this is OK.)
* Also, %-encode passwords in FTP URLs (doesn't help actual security, but
  makes it slightly harder to figure out a password by reading over
  somebody's shoulder).

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Mon Apr 19 15:19:28 1999 UTC (25 years ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE
Changes since 1.38.2.1: +23 -16 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored) to selected 1.54.2.1 (colored)

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

Revision 1.44 / (download) - annotate - [select for diffs], Tue Apr 13 20:17:48 1999 UTC (25 years ago) by bouyer
Branch: MAIN
Changes since 1.43: +1 -4 lines
Diff to previous 1.43 (colored) to selected 1.54.2.1 (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.43 / (download) - annotate - [select for diffs], Tue Apr 13 14:49:56 1999 UTC (25 years ago) by bouyer
Branch: MAIN
Changes since 1.42: +1 -3 lines
Diff to previous 1.42 (colored) to selected 1.54.2.1 (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.42 / (download) - annotate - [select for diffs], Sun Apr 11 22:40:21 1999 UTC (25 years ago) by bouyer
Branch: MAIN
Changes since 1.41: +3 -1 lines
Diff to previous 1.41 (colored) to selected 1.54.2.1 (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.41 / (download) - annotate - [select for diffs], Fri Apr 9 10:24:39 1999 UTC (25 years ago) by bouyer
Branch: MAIN
Changes since 1.40: +22 -12 lines
Diff to previous 1.40 (colored) to selected 1.54.2.1 (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.38.2.1 / (download) - annotate - [select for diffs], Wed Apr 7 23:39:53 1999 UTC (25 years ago) by simonb
Branch: netbsd-1-4
Changes since 1.38: +11 -8 lines
Diff to previous 1.38 (colored) to selected 1.54.2.1 (colored)

Pull up revs 1.39, 1.40 from the trunk.  Removes single quotes at the
start and end of the FTP URL (there's no shell involved, so it doesn't
need quoting), and removes extra '/'s between the hostname and pathname
components of the FTP URL.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Apr 7 13:09:55 1999 UTC (25 years ago) by simonb
Branch: MAIN
Changes since 1.39: +8 -1 lines
Diff to previous 1.39 (colored) to selected 1.54.2.1 (colored)

Remove any leading '/'s in the pathname component of the FTP URL.
When the complete URL is constructed, and '/' is inserted between
the hostname and the pathname components.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Apr 7 05:18:49 1999 UTC (25 years ago) by simonb
Branch: MAIN
Changes since 1.38: +4 -8 lines
Diff to previous 1.38 (colored) to selected 1.54.2.1 (colored)

Remove single quotes from the ftp URL and remove the comment about
"protecting the URL from the shell."  run_prog() now breaks up it's
argument and calls execvp() directly, so there's no shell to be wary
off...

Revision 1.38 / (download) - annotate - [select for diffs], Fri Mar 19 14:49:07 1999 UTC (25 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.37: +103 -6 lines
Diff to previous 1.37 (colored) to selected 1.54.2.1 (colored)

URLs can't safely contain certain characters unless they are %XX hex
encoded. This means certain passwords, usernames, etc., will not work
with "ftp ftp://...."

This code, submitted by Alan Barrett <apb@iafrica.com>, fixes this by
hex encoding unsafe strings in a clean fashion. This should close a
couple of outstanding PRs. Thanks Alan!

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jan 25 23:34:24 1999 UTC (25 years, 2 months ago) by garbled
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) to selected 1.54.2.1 (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.36 / (download) - annotate - [select for diffs], Thu Jan 21 08:02:18 1999 UTC (25 years, 3 months ago) by garbled
Branch: MAIN
Changes since 1.35: +55 -18 lines
Diff to previous 1.35 (colored) to selected 1.54.2.1 (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.8.2.16 / (download) - annotate - [select for diffs], Sun Nov 22 03:06:58 1998 UTC (25 years, 5 months ago) by cgd
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Changes since 1.8.2.15: +22 -1 lines
Diff to previous 1.8.2.15 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored) to selected 1.54.2.1 (colored)

pull up rev 1.35 from trunk (via patch).  (jonathan)

Revision 1.35 / (download) - annotate - [select for diffs], Mon Nov 9 07:56:11 1998 UTC (25 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.34: +22 -1 lines
Diff to previous 1.34 (colored) to selected 1.54.2.1 (colored)

Handle ifconfig "media: ethernet manual" output for devices with
non-soft-settable media.  Treat that as if there was no media output.

Use a supplied media-string of "<null>" or "<default>" or synonyms to
avoid passing explicit media flags onto ifconfig.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Oct 14 05:27:52 1998 UTC (25 years, 6 months ago) by phil
Branch: MAIN
Changes since 1.33: +3 -4 lines
Diff to previous 1.33 (colored) to selected 1.54.2.1 (colored)

Change how network interfaces are selected to allow for longer names,
e.g. epic0.  (Fixes PR 5778)

Revision 1.33 / (download) - annotate - [select for diffs], Thu Sep 17 16:45:36 1998 UTC (25 years, 7 months ago) by phil
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored) to selected 1.54.2.1 (colored)

Fix class c netmask.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Aug 5 07:44:58 1998 UTC (25 years, 8 months ago) by hubertf
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored) to selected 1.54.2.1 (colored)

/route/s/-f/flush/

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jul 6 06:59:36 1998 UTC (25 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.30: +5 -3 lines
Diff to previous 1.30 (colored) to selected 1.54.2.1 (colored)

- use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames

Revision 1.30 / (download) - annotate - [select for diffs], Sat Jun 20 13:05:50 1998 UTC (25 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.29: +108 -106 lines
Diff to previous 1.29 (colored) to selected 1.54.2.1 (colored)

KNF.

Revision 1.8.2.15 / (download) - annotate - [select for diffs], Fri May 29 20:48:51 1998 UTC (25 years, 10 months ago) by mycroft
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH002
Changes since 1.8.2.14: +14 -1 lines
Diff to previous 1.8.2.14 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (colored)

Pull up the very last patch from fvdl.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Feb 9 07:34:16 1998 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored) to selected 1.54.2.1 (colored)

Needs <time.h>

Revision 1.28 / (download) - annotate - [select for diffs], Sat Feb 7 10:28:02 1998 UTC (26 years, 2 months ago) by jonathan
Branch: MAIN
Changes since 1.27: +13 -1 lines
Diff to previous 1.27 (colored) to selected 1.54.2.1 (colored)

Set hostname (via sethostname()) after configuring network.
Save hostname in /etc/myname when saving networkg config.
From Nathan J. Williams <nathanw@mit.edu> in PR bin/4781.

Revision 1.8.2.14 / (download) - annotate - [select for diffs], Fri Dec 26 02:39:49 1997 UTC (26 years, 3 months ago) by perry
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH001
Changes since 1.8.2.13: +30 -10 lines
Diff to previous 1.8.2.13 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (colored)

pull up from trunk (fvdl)

Revision 1.27 / (download) - annotate - [select for diffs], Fri Dec 26 01:58:48 1997 UTC (26 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.26: +30 -10 lines
Diff to previous 1.26 (colored) to selected 1.54.2.1 (colored)

* mount NFS directory to get the sets from read-only,
  same for floppies (from Christoph Badura)
* allow user to run 'Configure network' multiple times, to correct errors
  for example.
* deal with network interfaces that need explicit media type selection
  (i.e. ask for it when it is needed, also store it in the generated
  /etc/ifconfig.blah file on the destination disk)

Revision 1.8.2.13 / (download) - annotate - [select for diffs], Fri Dec 5 17:21:15 1997 UTC (26 years, 4 months ago) by phil
Branch: netbsd-1-3
Changes since 1.8.2.12: +3 -3 lines
Diff to previous 1.8.2.12 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (colored)

Sync with HEAD. (Ping the right host.)

Revision 1.26 / (download) - annotate - [select for diffs], Fri Dec 5 17:19:48 1997 UTC (26 years, 4 months ago) by phil
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored) to selected 1.54.2.1 (colored)

Ping the right host.  (From Matthias Pfaller.)

Revision 1.8.2.12 / (download) - annotate - [select for diffs], Fri Dec 5 14:29:03 1997 UTC (26 years, 4 months ago) by jonathan
Branch: netbsd-1-3
Changes since 1.8.2.11: +3 -3 lines
Diff to previous 1.8.2.11 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (colored)

Pull up rev 1.25 of net.c to the 1.3 release branch:
>Put shell quotes around  FTP URLs in case of shell  metachars in passwords.
>From PR #4580.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Dec 5 14:26:27 1997 UTC (26 years, 4 months ago) by jonathan
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.54.2.1 (colored)

Put shell quotes around  FTP URLs in case of shell  metachars in passwords.
From PR #4580.

Revision 1.8.2.11 / (download) - annotate - [select for diffs], Fri Dec 5 14:12:47 1997 UTC (26 years, 4 months ago) by jonathan
Branch: netbsd-1-3
Changes since 1.8.2.10: +18 -3 lines
Diff to previous 1.8.2.10 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (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.24 / (download) - annotate - [select for diffs], Fri Dec 5 14:01:07 1997 UTC (26 years, 4 months ago) by jonathan
Branch: MAIN
Changes since 1.23: +18 -3 lines
Diff to previous 1.23 (colored) to selected 1.54.2.1 (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.8.2.10 / (download) - annotate - [select for diffs], Tue Nov 25 06:58:00 1997 UTC (26 years, 4 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-BETA
Changes since 1.8.2.9: +3 -3 lines
Diff to previous 1.8.2.9 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (colored)

Sync w/ trunk.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Nov 25 06:53:11 1997 UTC (26 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored) to selected 1.54.2.1 (colored)

Update for the lay-of-the-land as described in release(7).  As such, move
all pathname-on-server related definitions to MI code, since they are now
defined to be consistent across all platforms.  Also, nuke the "rels" global,
since release numbers are now always specified in "long form", i.e. 1.3A
vs. 13A.

Revision 1.8.2.9 / (download) - annotate - [select for diffs], Tue Nov 25 00:53:05 1997 UTC (26 years, 4 months ago) by thorpej
Branch: netbsd-1-3
Changes since 1.8.2.8: +3 -1 lines
Diff to previous 1.8.2.8 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (colored)

Sync w/ trunk.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Nov 25 00:24:54 1997 UTC (26 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored) to selected 1.54.2.1 (colored)

Prompt for keypress after FTP failure, so we know what went wrong.
From Havard.Eidnes@runit.sintef.no, PR #4521.

Revision 1.8.2.8 / (download) - annotate - [select for diffs], Sat Nov 22 14:19:06 1997 UTC (26 years, 4 months ago) by simonb
Branch: netbsd-1-3
Changes since 1.8.2.7: +74 -23 lines
Diff to previous 1.8.2.7 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (colored)

Sync w/ trunc;
	Fix PRs 4548 & 4539 - allow empty nameserver and default router.
	Preload some network defaults if known.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Nov 22 14:16:55 1997 UTC (26 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.20: +39 -2 lines
Diff to previous 1.20 (colored) to selected 1.54.2.1 (colored)

Load defaults for hostname, IP address and netmask if these are already
configured.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Nov 22 13:52:45 1997 UTC (26 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.19: +36 -22 lines
Diff to previous 1.19 (colored) to selected 1.54.2.1 (colored)

Don't try to ping a nameserver or default router if not is specified.  Also
don't build an /etc/resolv.conf if a nameserver is not specified.
Fixes PRs #4548 and #4539.

Revision 1.8.2.7 / (download) - annotate - [select for diffs], Sat Nov 22 00:33:04 1997 UTC (26 years, 5 months ago) by simonb
Branch: netbsd-1-3
Changes since 1.8.2.6: +7 -1 lines
Diff to previous 1.8.2.6 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (colored)

Sync w/ trunc; fix PR#4542 - no network interfaces found.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Nov 22 00:29:35 1997 UTC (26 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.18: +7 -1 lines
Diff to previous 1.18 (colored) to selected 1.54.2.1 (colored)

If not network interfaces are found, just return without cycling forever
with no valid choices.
Fixes PR#4542 from Stephane Engel.

Revision 1.8.2.6 / (download) - annotate - [select for diffs], Tue Nov 11 00:47:31 1997 UTC (26 years, 5 months ago) by phil
Branch: netbsd-1-3
Changes since 1.8.2.5: +3 -2 lines
Diff to previous 1.8.2.5 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (colored)

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

Revision 1.18 / (download) - annotate - [select for diffs], Tue Nov 11 00:43:41 1997 UTC (26 years, 5 months ago) by phil
Branch: MAIN
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored) to selected 1.54.2.1 (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.8.2.5 / (download) - annotate - [select for diffs], Mon Nov 10 19:23:19 1997 UTC (26 years, 5 months ago) by thorpej
Branch: netbsd-1-3
Changes since 1.8.2.4: +5 -9 lines
Diff to previous 1.8.2.4 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (colored)

Sync w/ trunk.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Nov 9 15:54:17 1997 UTC (26 years, 5 months ago) by phil
Branch: MAIN
Changes since 1.16: +5 -9 lines
Diff to previous 1.16 (colored) to selected 1.54.2.1 (colored)

-TODO: Remove names as they were source name rather than names of who should
	do it.
-change install confirmation message to outline install process
-move english print text into msg.mi.eng.

Revision 1.8.2.4 / (download) - annotate - [select for diffs], Thu Nov 6 00:40:26 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.8.2.3: +47 -12 lines
Diff to previous 1.8.2.3 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (colored)

Pull rev 1.13, 1.14, 1.15 and 1.16 up from trunk (jonathan)

Revision 1.16 / (download) - annotate - [select for diffs], Wed Nov 5 07:28:32 1997 UTC (26 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.15: +28 -20 lines
Diff to previous 1.15 (colored) to selected 1.54.2.1 (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.15 / (download) - annotate - [select for diffs], Wed Nov 5 01:23:08 1997 UTC (26 years, 5 months ago) by phil
Branch: MAIN
Changes since 1.14: +5 -1 lines
Diff to previous 1.14 (colored) to selected 1.54.2.1 (colored)

Complete -r flag addition, info was static, now path names are runtime
constructed so -r flag makes a diffference in the distribution directory.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Nov 3 09:47:02 1997 UTC (26 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.13: +4 -2 lines
Diff to previous 1.13 (colored) to selected 1.54.2.1 (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.13 / (download) - annotate - [select for diffs], Sun Nov 2 23:43:12 1997 UTC (26 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.12: +27 -6 lines
Diff to previous 1.12 (colored) to selected 1.54.2.1 (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.8.2.3 / (download) - annotate - [select for diffs], Sun Nov 2 20:44:00 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.8.2.2: +20 -12 lines
Diff to previous 1.8.2.2 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (colored)

Pull rev 1.12 up from trunk (jonathan)

Revision 1.12 / (download) - annotate - [select for diffs], Sun Nov 2 08:20:44 1997 UTC (26 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.11: +20 -12 lines
Diff to previous 1.11 (colored) to selected 1.54.2.1 (colored)

* Change sysinst MI code to use new install-target-filesystem access functions.
  Add  target.c to Makefiles.

* Minor fixes:
  * Fix buglet in disks.c: make sure the target /etc exists before
    touching the target's /etc/fstab. (Could be even cleaner.)

   * If the target root is on /, don't copy our temporary /etc/resolv.conf
     to the target /etc/resolv.conf. (Could be even cleaner.)
   * Don't write the DNS hostname into /etc/defaultdomain.
     DNS  search paths are often not the same as YP group names.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Thu Oct 30 06:13:21 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.8.2.1: +17 -29 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored) to selected 1.54.2.1 (colored)

Pull rev 1.10 and 1.11 up from trunk (phil)

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 30 00:03:34 1997 UTC (26 years, 5 months ago) by phil
Branch: MAIN
Changes since 1.10: +6 -6 lines
Diff to previous 1.10 (colored) to selected 1.54.2.1 (colored)

Bug fixes for distribution sets from floppy, nfs and cdrom.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 29 01:06:58 1997 UTC (26 years, 5 months ago) by phil
Branch: MAIN
Changes since 1.9: +12 -24 lines
Diff to previous 1.9 (colored) to selected 1.54.2.1 (colored)

Sync with current state.  Includes selection of distribution sets, tweeks
to disk detection, and floppy load.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Mon Oct 27 19:36:26 1997 UTC (26 years, 5 months ago) by thorpej
Branch: netbsd-1-3
Changes since 1.8: +6 -2 lines
Diff to previous 1.8 (colored) to selected 1.54.2.1 (colored)

Sync w/ trunk.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 22 15:29:05 1997 UTC (26 years, 6 months ago) by phil
Branch: MAIN
Changes since 1.8: +6 -2 lines
Diff to previous 1.8 (colored) to selected 1.54.2.1 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 20 06:13:36 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.7: +35 -5 lines
Diff to previous 1.7 (colored) to selected 1.54.2.1 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Fri Oct 17 22:24:20 1997 UTC (26 years, 6 months ago) by phil
Branch: MAIN
Changes since 1.6: +8 -3 lines
Diff to previous 1.6 (colored) to selected 1.54.2.1 (colored)

Tweeks to make install better (take two)
- route messages to /dev/null
- remove // in some file names
- clear screen at proper times

Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 17 22:17:35 1997 UTC (26 years, 6 months ago) by phil
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored) to selected 1.54.2.1 (colored)

Try to recover from a mistake of mine where I lost bits.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 15 04:36:01 1997 UTC (26 years, 6 months ago) by phil
Branch: MAIN
Changes since 1.4: +27 -7 lines
Diff to previous 1.4 (colored) to selected 1.54.2.1 (colored)

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

Revision 1.4 / (download) - annotate - [select for diffs], Tue Oct 7 04:01:33 1997 UTC (26 years, 6 months ago) by phil
Branch: MAIN
Changes since 1.3: +8 -30 lines
Diff to previous 1.3 (colored) to selected 1.54.2.1 (colored)

Update to current state.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 1 05:04:29 1997 UTC (26 years, 6 months ago) by phil
Branch: MAIN
Changes since 1.2: +20 -7 lines
Diff to previous 1.2 (colored) to selected 1.54.2.1 (colored)

Sync with current state.  Fixes PR 4193.  factor.c -- replce prime table with
code to generate needed primes.  Change copyright because prime table was only
code under previous copyright.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Sep 27 00:09:28 1997 UTC (26 years, 6 months ago) by phil
Branch: MAIN
Changes since 1.1: +25 -10 lines
Diff to previous 1.1 (colored) to selected 1.54.2.1 (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.54.2.1 (colored)

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

This is a curses based, menu driven installation program.

Better error checking is needed.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Sep 26 23:02:54 1997 UTC (26 years, 6 months ago) by phil
Branch: MAIN
Diff to selected 1.54.2.1 (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>