The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


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

Rebase to HEAD as of a few days ago.

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

Rebase.

Revision 1.47, 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.46: +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.45.6.1 / (download) - annotate - [select for diffs], Thu May 17 18:57:08 2012 UTC (11 years, 10 months ago) by sborrill
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.45: +2 -5 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.30 (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.45.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:02:49 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.45: +2 -5 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.30 (colored)

sync with head

Revision 1.46 / (download) - annotate - [select for diffs], Fri Apr 6 23:48:53 2012 UTC (11 years, 11 months ago) by riz
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy
Changes since 1.45: +2 -5 lines
Diff to previous 1.45 (colored) to selected 1.30 (colored)

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

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

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

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

Revision 1.45 / (download) - annotate - [select for diffs], Mon Apr 4 08:30:12 2011 UTC (12 years, 11 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.44: +10 -14 lines
Diff to previous 1.44 (colored) to selected 1.30 (colored)

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

Revision 1.44 / (download) - annotate - [select for diffs], Sat Dec 4 14:57:56 2010 UTC (13 years, 3 months ago) by jmmv
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.43: +1 -3 lines
Diff to previous 1.43 (colored) to selected 1.30 (colored)

Remove password cipher selection as discussed in current-users@.

Users who really really really want to change the default setting can
continue to change their cipher algorithm right after a clean install
by modifying /etc/passwd.conf and regenerating the root password if
previously set by sysinst.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Sep 19 14:57:27 2009 UTC (14 years, 6 months ago) by abs
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.42: +1 -4 lines
Diff to previous 1.42 (colored) to selected 1.30 (colored)

defs.h:
- Re-order the md_*() definitions so they are in the order called
- Add some comments
- Remove obsolete md_set_no_x() definition
- Remove md_copy_filesystem()
- #if defined(DEBUG) declare backtowin(void) to avoid scattering
  externs in various md .c files

mbr.[ch]:
- Add a set_bios_geom_with_mbr_guess() which can be called by all
  the non x86 ports rather than copying the same code into arc,
  bebox, cobalt, evbmips, evbppc, hpcarm, hpcmips, landisk, ofppc,
  prep, sandpoint, and zaurus md.c

install.c:
- Remove now unnecessary call to md_copy_filesystem()

upgrade.c:
- Move move_aout_libs() here, and put under #ifdef AOUT2ELF
- Rather than having *every* md_update call wrefresh(curscr),
  wmove(stdscr, 0, 0), wclear(stdscr), and wrefresh(stdscr),
  move them here

arch/acorn26/md.c:
- Just include arch/acorn32/md.c, but add a note there warning
  about this, and while here add a note to i386/md.c that it
  is included by amd64

arch/*/md.c:
- By all means "Vive la difference", but we have 38 pairs of md.[ch],
  and they could not even agree on the order in which to list the
  md hooks, let alone formatting. Sort the md hooks to match the
  (now sane) order in def.sh, and try to normalise the formatting
- Also copy across some function level comments everywhere
- Ensure functions only used inside each md.c are defined as static
- Remove some now unused functions
- Some files had enable_rc_conf in #ifdef DEBUG. Add this to all
- bebox, evbppc and sandpoint were still playing broken games with
  copying the booted ramdisk to the target disk, the primary result
  of which was just to slow things down and ensure the target system
  lost the .profile extracted from the sets. Just kill this.
- For some ports md_update() called endwin(), and in others not.
  Take a cure from i386/amd64 and a few other more active ports,
  and update everything to match (no endwin())
- In a couple of cases correct port names in comments
- ANSIfy some lingering old style functions
- Consistently use "return 0;" rather than "return (0);"

More of the mbr code should be abstracted, along with the
get_ramsize() / set_swap() logic, but this is (more than)
enough for one day...

sysinst built for all ports but only runtime tested on amd64 & i386

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

Sync with HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Wed Apr 5 16:55:01 2006 UTC (17 years, 11 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, pc532-eol-2008, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs2-base, mjf-devfs-base, mjf-devfs, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: mjf-devfs2
Changes since 1.41: +4 -1 lines
Diff to previous 1.41 (colored) to selected 1.30 (colored)

Rather big update to sysinst, in order to get it working on the prep port.

1) Add an md_post_extract() function.  This function is called after
extracting the sets, and allows the arch to do something at that time.
In the case of prep, it is much easier to install the bootcode after all
the sets are extracted, so we do it in md_post_extract().  Added empty
md_post_extract() functions to all other arches so they compile.

2) Add md_mbr_use_wholedisk() and md_check_mbr().  In edit_mbr() I have
split off the code that uses the whole disk for NetBSD, into the
mbr_use_wholedisk() function.  On most ports that use mbr.c, I made
md_mbr_use_wholedisk() just call that and return.  On prep we create the
magical prep boot partition here.  The md_check_mbr() function allows the
arch to add additional checks after the user had manually edited the MBR
to make sure the choices he made allow NetBSD to function.  Added a dummy
routine to all mbr.c using arches.

3) Added code to bsdlabel.c to create a partition of type boot if
PART_BOOT is defined, but BOOT_SIZE is not defined.  Also added two more
globals "bootsize" and "bootstart" which must be seeded in order to do
so.  This is done on prep in md_check_mbr().

4) Added MBR_PTYPE_PREP to the list of MBR partitions.

5) Made the prep port actually install sanely.  It now creates a prep
boot partition, labels it correctly, installs all the sets, and then runs
mkbootimage and dd's the bootimage into the prep partition.  The result
is a prep installer that creates a bootable NetBSD installation
automatically.

6) Edited the prep menus and messages files to add new labels.  In the
case of the translated files, I just added the words in english for
someone to translate later.

I tried to xcompile a few arches to make sure I didn't break anything,
but I could have missed something.  Please let me know if I have broken
your arch in any way.  I'll watch the autobuilds for the next few days
too. For all ports other than prep there should be no functional changes
at all.

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Sun Aug 28 10:06:15 2005 UTC (18 years, 7 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.40: +4 -2 lines
Diff to previous 1.40 (colored) next main 1.41 (colored) to selected 1.30 (colored)

Pull up following revision(s) (requested by xtraeme in ticket #711):
	distrib/utils/sysinst/install.c: revision 1.41
After calling the function to find the disks, refresh the screen again.
This removes messages like "sd0: fabricating a geometry".

Revision 1.38.2.2.2.1 / (download) - annotate - [select for diffs], Sun Jul 24 02:25:24 2005 UTC (18 years, 8 months ago) by snj
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.38.2.2: +4 -2 lines
Diff to previous 1.38.2.2 (colored) next main 1.39 (colored) to selected 1.30 (colored)

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

Revision 1.41 / (download) - annotate - [select for diffs], Sat Jul 9 14:56:23 2005 UTC (18 years, 8 months ago) by xtraeme
Branch: MAIN
Changes since 1.40: +4 -2 lines
Diff to previous 1.40 (colored) to selected 1.30 (colored)

After calling the function to find the disks, refresh the screen again.
This removes messages like "sd0: fabricating a geometry".

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Mon Jun 7 10:21:22 2004 UTC (19 years, 9 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Changes since 1.38.2.1: +3 -11 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored) to selected 1.30 (colored)

Pull up revision 1.40 (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.40 / (download) - annotate - [select for diffs], Sat Jun 5 21:18:59 2004 UTC (19 years, 9 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.39: +3 -11 lines
Diff to previous 1.39 (colored) to selected 1.30 (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.38.2.1 / (download) - annotate - [select for diffs], Sat May 22 16:23:40 2004 UTC (19 years, 10 months ago) by he
Branch: netbsd-2-0
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.30 (colored)

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

Revision 1.39 / (download) - annotate - [select for diffs], Sun Apr 18 21:34:56 2004 UTC (19 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.30 (colored)

Throw out all the crap to do with etc.old, instead install etc/tgz
into /.sysinst and use /etc/postinstall to do the merge.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Sep 27 10:47:17 2003 UTC (20 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.37: +1 -9 lines
Diff to previous 1.37 (colored) to selected 1.30 (colored)

Use new kern.root_partition sysctl to find out whether we are installing
over the current root (ie the one we are booted from).
Remove all the stuff that tried to find this out by other means.
A few other message changes.

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

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

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

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

Revision 1.35 / (download) - annotate - [select for diffs], Wed Jun 25 15:45:22 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.34: +5 -4 lines
Diff to previous 1.34 (colored) to selected 1.30 (colored)

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

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

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

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jun 16 10:42:47 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.32: +3 -7 lines
Diff to previous 1.32 (colored) to selected 1.30 (colored)

Correct check for active swap on install disk.
Use swapctl() for all swap operations.
Remove md_upgrade_mbrtype() from arc and hpcmips ports.
(I haven't finalised what I'm doing about type 165 partitions, but the
existing code is borked.)

Revision 1.32 / (download) - annotate - [select for diffs], Wed Jun 11 21:35:35 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.31: +3 -1 lines
Diff to previous 1.31 (colored) to selected 1.30 (colored)

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

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jun 3 11:54:48 2003 UTC (20 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.30: +9 -9 lines
Diff to previous 1.30 (colored)

Add NULL to all process_menu() calls - value is passed through to the
action routine.
Make the french and polish versions compile.
NB needs a new version of menuc - so need 'build.sh tools'

Revision 1.30 / (download) - annotate - [selected], Wed Nov 13 00:43:09 2002 UTC (21 years, 4 months ago) by chris
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

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

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jul 29 03:05:16 2002 UTC (21 years, 8 months ago) by grant
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored) to selected 1.30 (colored)

add setting of root's shell, from Julio Merino in install/17676 with
minor changes by me.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Apr 4 14:26:44 2002 UTC (21 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored) to selected 1.30 (colored)

Allow the password cipher to be chosen at install time. XXX Not tested for
real yet, and the French files need updating.

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

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

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

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

Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 21 21:42:02 2000 UTC (23 years, 3 months ago) by jdc
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored) to selected 1.30 (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.19.10.4 / (download) - annotate - [select for diffs], Wed Nov 1 02:24:11 2000 UTC (23 years, 5 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2
Changes since 1.19.10.3: +4 -1 lines
Diff to previous 1.19.10.3 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored) to selected 1.30 (colored)

Pullup 1.24 [fvdl]:
Print an install complete message; this got lost when I changed things
to move this to after setting the time zone.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Oct 22 22:57:04 2000 UTC (23 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored) to selected 1.30 (colored)

Print an install complete message; this got lost when I changed things
to move this to after zetting the time zone.

Revision 1.19.10.3 / (download) - annotate - [select for diffs], Wed Oct 18 17:51:14 2000 UTC (23 years, 5 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-BETA
Changes since 1.19.10.2: +14 -2 lines
Diff to previous 1.19.10.2 (colored) to branchpoint 1.19 (colored) to selected 1.30 (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.23 / (download) - annotate - [select for diffs], Wed Oct 11 23:47:55 2000 UTC (23 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored) to selected 1.30 (colored)

* Change the interface of run_prog: use a flags argument instead of
  seperate booleans. Add flags to run as a plain 'system()' command,
  fullscreen (but on a pty), and chrooted, and implement their
  functionality. Add a bit of TIOCPKT handling code to handle
  programs messing with term settings better.
* Ask to set the root password at the end of an install.
* Remove a few unneeded comments.
* Sprinkle some touchwin() calls here and there to make the output cleaner.
  They shouldn't really be needed, but even normal usage (no syslog
  messages) even left the screen messy sometimes.
* Change some messages around that were apparently swapped by accident and
  thus caused confusion.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Sep 27 12:42:04 2000 UTC (23 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.21: +11 -1 lines
Diff to previous 1.21 (colored) to selected 1.30 (colored)

Move md_enable_swap to disks.c, rename it set_swap, and handle both
enabling and disabling swap. Enabling swap is currently only
done by the i386 port on systems with <= 8M of physical memory.

If a user re-enters the install procedure through the main menu,
and the target disk has an active swap partition, try to disable it,
warning the user that this might lead to 'out of swap' problems,
making a restart necessary. This should not happen very often.

Partly based on comments by Simon Burge.

Revision 1.19.10.2 / (download) - annotate - [select for diffs], Wed Sep 20 21:50:47 2000 UTC (23 years, 6 months ago) by hubertf
Branch: netbsd-1-5
Changes since 1.19.10.1: +2 -2 lines
Diff to previous 1.19.10.1 (colored) to branchpoint 1.19 (colored) to selected 1.30 (colored)

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

Revisions:
 > cvs rdiff -r1.20 -r1.21 basesrc/distrib/utils/sysinst/install.c
 > cvs rdiff -r1.68 -r1.69 basesrc/distrib/utils/sysinst/msg.mi.en

Log:
 > Doesn't it make you nervous to see a "lastchance" warning, telling you
 > that "your hard disk" is about to get nuked, and you are no longer sure
 > which of your ten disks you told sysinst to wipe?
 >
 > Change this to tell you:
 > ``Ok, we are now ready to install NetBSD on your hard disk (wd0). Nothing ...''

Revision 1.21 / (download) - annotate - [select for diffs], Wed Sep 20 21:21:14 2000 UTC (23 years, 6 months ago) by hubertf
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored) to selected 1.30 (colored)

Doesn't it make you nervous to see a "lastchance" warning, telling you
that "your hard disk" is about to get nuked, and you are no longer sure
which of your ten disks you told sysinst to wipe?

Change this to tell you:
``Ok, we are now ready to install NetBSD on your hard disk (wd0). Nothing ...''

Revision 1.19.10.1 / (download) - annotate - [select for diffs], Tue Aug 15 02:12:52 2000 UTC (23 years, 7 months ago) by hubertf
Branch: netbsd-1-5
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored) to selected 1.30 (colored)

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

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

Log Message:
 >  * Add timezone-setting menu to sysinst, offering all timezones from
 >    (/mnt)/usr/share/zoneinfo in a listbox, and setting (/mnt)/etc/localtime
 >    accordingly.
 >  * Adjust for the needed menuc change un run.c's log_flip() and script_flip()
 >    functions.
 >
 > Related PRs:
 >  5777   sysinst does not offer to tweak /etc/localtime
 >  8099   changing the default time zone is non-obvious
 >  9910   sysinst doesn't ask about setting timezone

Revision 1.20 / (download) - annotate - [select for diffs], Tue Aug 15 01:08:00 2000 UTC (23 years, 7 months ago) by hubertf
Branch: MAIN
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored) to selected 1.30 (colored)

 * Add timezone-setting menu to sysinst, offering all timezones from
   (/mnt)/usr/share/zoneinfo in a listbox, and setting (/mnt)/etc/localtime
   accordingly.
 * Adjust for the needed menuc change un run.c's log_flip() and script_flip()
   functions.

Related PRs:
 5777   sysinst does not offer to tweak /etc/localtime
 8099   changing the default time zone is non-obvious
 9910   sysinst doesn't ask about setting timezone

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Thu Jun 24 22:58:20 1999 UTC (24 years, 9 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.13.2.1: +5 -4 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored) to selected 1.30 (colored)

pull up rev(s) 1.17-1.19 from trunk. (cgd)

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 22 06:57:00 1999 UTC (24 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl, dynamic-messages-base, dynamic-messages, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-5
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored) to selected 1.30 (colored)

* make selection of 'none' for installation media type return the user
  to the toplevel menu, as promised by the media selection menu, without
  first going through an "installation is aborted" menu.
* when something causes the installation to fail (e.g. missing set or failure
  to extract a set's contents), don't go through N menus
  (missing/failed/aborted, sets didn't install/aborted,
  sanity check failed/aborted) before getting back to the top level.  The
  user only needs to be told once that their life sucks.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jun 22 00:57:06 1999 UTC (24 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored) to selected 1.30 (colored)

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

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

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

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Mon Apr 19 15:19:27 1999 UTC (24 years, 11 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE
Changes since 1.13: +23 -9 lines
Diff to previous 1.13 (colored) to selected 1.30 (colored)

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

Revision 1.16 / (download) - annotate - [select for diffs], Tue Apr 13 20:17:47 1999 UTC (24 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored) to selected 1.30 (colored)

Main change: add a cleanup_dist() function in util.c which will do the needed
cleanups before extracting a set. Should'nt do anything for an install,
as the filesystem shouldn't contain files that need to be removed.
cleanup_dist() is called before extract_file() for each set (the set name
is passed as parameter). It will open a file /dist/<set name>_obsolete
if it exists. This file should contain a list of files (absolutes
pathnames) that needs to be removed. cleanup_dist() will lstat() each file
to determine if it's there and if it's a directory or not.
It will then unlink() entries that are not directories and then rmdir()
directories. If a directory is not empty (it should now if the list of files
is correct) it will be renamed to <directory.old> and the user will be warned.

Other changes:
- move prototype of target_prefix() in defs.h, don't maintain a copy
  of it in each file.
- in install.c, after MSG_disksetupdone, do a wclear(stdscr) (display was
  clobbered after it).
- kill MSG_openmsgbuf, it's not used anywhere
- after MSG_disksetupdone in upgrade, don't call MENU_ok, do it the
  same way as in install.
- add wclear(stdscr);/wrefresh(stdscr); before calling MENU_distset (another
  display problem ...)
- While I'm there, move ask_verbose_dist() before MENU_distmedium. This way,
  if all go well the user can go away one ftp starts and come back once
  sets are extracted.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Apr 11 22:40:20 1999 UTC (24 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored) to selected 1.30 (colored)

- Add 2 functions in label.c, getpartoff()/getpartsize() used to let the user
  enter partitions offet and size. The user can chose unit independantly of
  the unit used for display ('M'/'c'/'s'). These functions do the proper
  bound checks and alignement/roudups. Used in the edfspart menu and
  i386 md_make_bsd_partitions() (other ports should do the change as
  well).
- now that getpartsize() does the rigth thing, kill the swapadj hack (which was
  buggy anyway).
- in i386 md_make_bsd_partitions(), don't propose defaults that don't fit on
  the disk. If the disk is too small, fallback to custom instead.
- fix a bug in mbr.c, where the partition flags would not have always been
  reset. sysinst created me a MBR with 2 active partition. The boot code
  doesn't like it :)
- added a message for eventual mount failures.
- killed donewfs and extracting messages, as we run  the commands in a
  subwindow these messages just flashed on the screen.
- Changes a few exit(1) to return(1), to give the user a second chance.
- added msg_clear() or wclear(stdscr) in a place or two, to make
  display a bit nicer.
- in run_cmd(), if the command succeeded, don't wait for the user to
  press enter.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Apr 9 10:24:38 1999 UTC (24 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.13: +20 -9 lines
Diff to previous 1.13 (colored) to selected 1.30 (colored)

Some fixes for the do_install() function:
- Make all the functions called from do_install() return an error code,
  so that we can abort install if something went wrong.
- Add a 'errstr' argument to run_prog(), which if not NULL is displayed
  with msg_printf() and followed by process_menu(MENU_ok) if the command fail.
  Used to warn the user that the current action is aborted.
- in a few places use msg_display() or msg_printf() rather than printf.
  It seems that stdout/stderr are not always pointing to the active curses
  window.
- garbage-collecd unused messages, add a few new one (error handling).
XXX only tested on i386. Other md parts should be tested as well.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 21 08:02:17 1999 UTC (25 years, 2 months ago) by garbled
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.12: +6 -7 lines
Diff to previous 1.12 (colored) to selected 1.30 (colored)

This change includes the following:
Scripting and logging functionality for sysinst.
Child programs are run in a "display window" so you can actually see what
	they did before the screen flashes back and you loose it all.
Lots of curses fixups.  Removed nasty endwins that mangled the tty upon
	rentry.
Change the yes/no box to accept Y or N, and not require cursor motion to
	decide one or the other.
Perform curses redraws when doing things that could cause the kernel to
	spew printfs onto your screen.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jun 20 13:05:48 1998 UTC (25 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.11: +21 -20 lines
Diff to previous 1.11 (colored) to selected 1.30 (colored)

KNF.

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Fri May 29 18:01:44 1998 UTC (25 years, 10 months ago) by mycroft
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002
Changes since 1.5.2.4: +3 -1 lines
Diff to previous 1.5.2.4 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored) to selected 1.30 (colored)

Pull up 1.10, per request of fvdl.

Revision 1.11 / (download) - annotate - [select for diffs], Fri May 15 15:12:30 1998 UTC (25 years, 10 months ago) by fvdl
Branch: MAIN
Changes since 1.10: +3 -1 lines
Diff to previous 1.10 (colored) to selected 1.30 (colored)

Add MD cleanup function to do some thingd once the install is done.
Only implemented for the i386; behaviour for other ports is
unchanged. For the i386, make this function remove some extraneous
files in /, and frob rc.conf to have rc_configured=YES. The defaults
are reasonable, and it saves the user having to set TERM and mount
filesystems by hand in order to be able to edit /etc/rc.conf

(XXX not very clean, but it's a workaround to be more user-friendly
 for 1.3.2)

Also adapt a few messages slightly so they apply to both situations.

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Thu Dec 4 11:44:46 1997 UTC (26 years, 4 months ago) by jonathan
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH001
Changes since 1.5.2.3: +5 -2 lines
Diff to previous 1.5.2.3 (colored) to branchpoint 1.5 (colored) to selected 1.30 (colored)

Pull up commit with message
 >Add check for overlapping partitions:
to 1.3 branch;

  defs.h,v: 1.24
  install.c,v: 1.10
  msg.mi.eng,v: 1.22
  arch/arm32/Makefile,v: 1.2
  arch/arm32/md.c,v: 1.2
  arch/i386/Makefile,v: 1.5
  arch/i386/md.c,v: 1.9
  arch/pc532/Makefile: 1.6
  arch/pc532/md.c,v: 1.4
  arch/pmax/Makefile,v: 1.3
  arch/pmax/md.c,v: 1.16

Revision 1.10 / (download) - annotate - [select for diffs], Thu Dec 4 11:27:59 1997 UTC (26 years, 4 months ago) by jonathan
Branch: MAIN
Changes since 1.9: +5 -2 lines
Diff to previous 1.9 (colored) to selected 1.30 (colored)

Add check for overlapping partitions:
 * Add `partinfo' type, for description of a single partition,
   so we can pass labels by reference..
 * Add label.c with label initialization, naive overlap-check code,
   and a UI entrypoint edit_and_check_label() which iterates through
   checking a label for overlaps, and if any, giving the user the choice of
   fixing them or punting back to the main menu.
 * Change return type of md_make_bsd_partitions from void to int.
   Return 0 if the partition has problems (or the user gave up on it)
   and 1 if the partition is completed and looks OK.
 * Change install() to check return value of md_make_bsd_partitions().
   If it returns zero,  print an `abort' message and return to main menu.
 * Add label.c to all ports' Makefile.

MD code tested on pmax and cut-and-pasted to other ports.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Mon Nov 10 19:22:58 1997 UTC (26 years, 4 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-BETA
Changes since 1.5.2.2: +8 -1 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored) to selected 1.30 (colored)

Sync w/ trunk.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Nov 9 12:47:08 1997 UTC (26 years, 4 months ago) by jonathan
Branch: MAIN
Changes since 1.8: +8 -1 lines
Diff to previous 1.8 (colored) to selected 1.30 (colored)

Fix target prefixing to handle both root-in-swap (traditional miniroot)
and current-root-is-target-root (pmax diskimage.

 * Add code to check disk names (e.g., "sd0") against the current
   kern.root_device  sysctl (whic  does *not* include a partition).

 * Add new function must_mount_root():
   check to see if it's the same device as the root.  If not,
   the current and target root partitions cannot overlap.
   If they do, do statfs() on "/", and return 1 iff we get back
   "root_device" as the mounted-on filesystem, otherwise zero.

* Call must_mount_root() right after the user specifies a disk as
  install/upgrade target, and  if it returns 1, print a message asking
  them to mount root, and abort.

*  Use statfs("/")  mounted_from string to check if a disk partition
    (e.g., "sd0a") matches the current root.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Thu Nov 6 00:34:08 1997 UTC (26 years, 4 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.5.2.1: +5 -3 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) to selected 1.30 (colored)

Pull rev 1.7 and 1.8 up from trunk (jonathan)

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 5 07:28:26 1997 UTC (26 years, 4 months ago) by jonathan
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored) to selected 1.30 (colored)

* Add code to run `test(1)' on target-root pathnames.

* Change find_disks: after mouting target root, check for
  /etc/fstab in target, and abort upgrade if not found.

* Change upgrade to check if the target root has /etc.old
  before renaming the target /etc -> /etc.old.  If found, abort.
  (may indicates a failed upgrade.)

*  Add save_etc(). saves target /etc as /etc.old, then copies back
   config files we might want during upgrade, in case target is current root.

* Fix logic that fscks and mounts disks. Use subroutines to
  fsck with a warning message and ok() on continue.  Same for doing mounts.

* Fix bug in extract_dist(). Do NOT do target prefixing on the dist_dir,
  since we didn't do target prefixing when mounting it.
  (At least, NFS does't.)

* Add function to  sanity-check target root.
   Call after upgrade/install  is done.

* Change MSG_realdir to print the strerror() of any errors.
  Change target_chdir() to check if chdir() returns -1 and return errno.

* Make sure /dev exists before cd'ing there and running MAKEDEV.

* Use target_fopen() and fprintf() to write network state to disk,
  to avoid inadvertent shell escapes.

* Fix silly typo in append_to_target_file. (maybe add shell quotes?)

Revision 1.7 / (download) - annotate - [select for diffs], Mon Nov 3 06:18:08 1997 UTC (26 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored) to selected 1.30 (colored)

Make install() use msgc, not inline text, for the `disks done' text.
Expand that text, making clearer what sysinst is done, what kind of
errors to double-check for before proceeding, and what we're about to do next.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Sun Nov 2 20:55:40 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.5: +3 -32 lines
Diff to previous 1.5 (colored) to selected 1.30 (colored)

Pull rev 1.6 up from trunk (jonathan)

Revision 1.6 / (download) - annotate - [select for diffs], Sun Nov 2 09:41:59 1997 UTC (26 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.5: +3 -32 lines
Diff to previous 1.5 (colored) to selected 1.30 (colored)

Snip out common code that fetches and unpack setss in both upgrade()
and install().  Put it into a new function ``get_and_unpack_sets()''.
Fixes a typo (/sbin/umoount) in the upgrade() version.

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

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

Revision 1.4 / (download) - annotate - [select for diffs], Fri Oct 17 21:10:39 1997 UTC (26 years, 5 months ago) by phil
Branch: MAIN
Changes since 1.3: +5 -2 lines
Diff to previous 1.3 (colored) to selected 1.30 (colored)

Tweeks to make install nicer.

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

Update to current state.

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