Commit Graph

515 Commits

Author SHA1 Message Date
shin acabf4765c struct mbr_bootsel et al were moved to sys/disklabel_mbr.h, adapt. 2003-05-07 03:34:23 +00:00
shin c1bb0fc7a0 struct mbr_bootsel et al were moved to sys/disklabel_mbr.h, adapt. 2003-05-07 02:13:32 +00:00
fvdl 21670652bf struct mbr_bootsel et al were moved to sys/disklabel_mbr.h, adapt. 2003-05-03 17:04:09 +00:00
fvdl 043f21d9ea x86_64 -> amd64 2003-04-26 19:14:17 +00:00
fvdl 0945a6df17 x86_64 -> amd64 2003-04-26 19:02:50 +00:00
fvdl 046ec6c887 FIx kernel set names. Add 'toolchain' set for the time being. 2003-04-17 19:30:19 +00:00
thorpej 6a324a98cb * Add ADI_BRH to the list of kernel sets.
* Add "ld" to the list of acceptable disk names.
2003-04-10 17:05:25 +00:00
jmmv 2b250668c1 When installing from floppy disks, let the user say which is the last one
on a set, instead of hardcoding the number of parts in sysinst (which gets
out of sync easily).  The fdlast field of the distinfo struct has been
removed.

This solution is a bit simplistic but...  anybody using the floppy
installation method will have to split sets himself (as we don't provide
them), so he will know which is the last one.  Also, he will be able to
use whatever chunk size he wants.

Closes PR install/5050.  Ok'ed by fvdl.
2003-04-06 16:12:36 +00:00
mrg 6f05c73b55 fix a couple of sparc sysinst bugs:
- md_set_no_x() was turning off the "misc" and "text" sets and
	not turning off the "xcomp" and "xmisc" sets.

	- now that a kernel is installed as "/netbsd" by default, do not
	try to symlink (!) from /netbsd-GENERIC (which does not exist)
	to /netbsd.

also:
	- instead of printing the 3 kernel sets all as "Kernel       : ",
	now use "Kernel       : ", "Kernel(SCSI3): " and "Kernel(SUN4U): "

	- add a note to md.c and the menus.md.* files to keep these lists
	in sync (so that the first problem above does not occur again.)

missing:
	- a way to force that one and only one of the 3 kernel sets are
	selected.  at least the default install works now.
2003-02-19 02:09:46 +00:00
grant e245be8651 we really should install the GENERIC kernel by default.
fixes PR install/18502 from Jay R. Fink.
2003-02-17 16:31:05 +00:00
bouyer a82a445995 Use the real size of the disk, not cyl*head*sect.
Handle the "use existing" option for partitions (but keep d as the
boot partition).
While I'm there use get_real_geom() instead of custom code to get the
existing disklabel.
2003-02-12 11:10:08 +00:00
simonb 276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
thorpej 8f4d94ed22 Allow the user to select the console speed of the boot blocks. 2003-01-15 00:09:30 +00:00
christos cc9b9c6553 hack to have only one copy of fstypenames[] 2003-01-12 21:49:50 +00:00
christos 440c3bcc16 check for malloc returning null 2003-01-11 22:32:25 +00:00
christos 774782c3bc Make everything compile again. All platforms compile on i386 now. 2003-01-11 19:44:04 +00:00
christos d5c5392912 make compile on !playstation 2003-01-11 19:37:48 +00:00
christos 848b0d8582 use the <sys/bootblock.h> names. 2003-01-11 19:31:52 +00:00
christos 83b0b99b3b use definitions from <sys/bootblock.h>; don't require <machine/disklabel.h>
mac68k machine/disklabel.h contains duplicate definitions that also exist
in <sys/disklabel.h> and <sys/bootblock.h> and should be removed.
2003-01-11 19:28:04 +00:00
christos 405768deca remove i386'isms; make link again. 2003-01-11 19:06:54 +00:00
christos 2d7e213ded pass lint[pass1] 2003-01-10 20:00:27 +00:00
lukem 1903b2f616 Add '-O' to pax command line, so that various error conditions don't try
and prompt the user for a new archive.

(No idea if this solves the infamous "sysinst random coredump" problem,
but it's worth a shot, and makes sense in any case)
2002-12-22 12:07:34 +00:00
fvdl 1922972e59 if 0 out the X sets for the time being. 2002-12-10 20:08:46 +00:00
scw 1d4f4f766c The walnut port has been subsumed by the new evbppc port. 2002-12-09 14:08:02 +00:00
fvdl a4da65a9cc sysinst glue for x86_64. 2002-12-05 02:05:56 +00:00
fvdl 171b46b525 FILE *log -> FILE *logfp, to avoid warnings about gcc-current's
builtin log() function.
2002-12-05 01:17:15 +00:00
lukem c7ad6e6337 Consistently use "netbsd-XXXXX" instead of "netbsd.XXXXX". 2002-11-18 12:39:43 +00:00
rnestor 75cd879de4 Fixed problem initializing the Partition Map on a blank disk and added
a driver entry for an ATA driver used on Macs with IDE disks. Also did
some cleanup to facilitate use of code on the Macppc port.
2002-10-20 22:06:17 +00:00
lukem ed56ec3a05 Rework how SMALLPROG was being used and how INET6 support was enabled.
There's two variables added to Makefile.crunch:

    SMALLPROG		If 1, add SMALLPROG=1 to CRUNCHENV.  [default: 1]
			This can be used by various Makefiles to
			determine if a `small' version of the program
			is required.

    SMALLPROG_INET6	If 1 and SMALLPROG == 1, add SMALLPROG_INET6=1
			to CRUNCHENV.  [default: 0]
			This can be used by various Makefiles to
			determine if the `small' version has INET6
			support enabled.

Only enable SMALLPROG_INET6 for programs on the ramdisks that have INET6 in
the appropriate kernel, and cleanup INET6 setting.
(Note: this means that sysinst won't get INET6 support if the kernel
it's running on doesn't have it).

This change saves a fair bit of space on various install images
(including i386 ramdisk-{ps2,small,tiny}) that didn't have INET6 in
the kernel but were unconditionally getting INET6 support in their tools.
2002-10-17 02:05:35 +00:00
grant b81826593e s/unused/inutilis'e/
from Stoned Elipot.
2002-09-27 15:21:52 +00:00
grant 6f98f8dffe update French translation, add "don't change" option to mbr partition
type selection.

from install/18192.
2002-09-27 15:20:01 +00:00
grant 5e3818a6e0 add "don't change" option to mbr partition type selection.
addresses part of install/18192.
2002-09-09 10:53:48 +00:00
grant 3404913871 add explanation of normal vs. serial bootblocks.
addresses part of install/18192.
2002-09-09 10:32:49 +00:00
jdolecek ae25afd5a6 Do not get confused by empty MBR when gathering information for disk layout.
This fixes install/18153 by Johnny C. Lam.

Base for fix provided by Tyler Retzlaff. Tested by Tyler, Grant Beattie & me.
2002-09-04 14:22:20 +00:00
rnestor 4ca44777d6 Correct the printout of the partition start and size values. 2002-09-03 00:35:53 +00:00
grant 2df65a0a6e make mbr and disklabel editor consistently use Start, End, Size in
that order.

"offset" -> "start" where applicable.
2002-08-12 02:22:52 +00:00
gmcgarry 26945b2c8b Bootblock is called uboot.lif. Problem reported by
Sageev T. George <sageev@bmsrs.usc.edu>.
2002-08-04 01:24:57 +00:00
grant c095f9f3cc make 'use existing partitions' work on i386.
patch provided by Tyler Retzlaff, fixes install/17747.
2002-08-02 10:28:17 +00:00
grant 0b81a2c68e set root partition default bsize and fsize. 2002-08-02 05:11:29 +00:00
grant 56ad586e08 filesystem -> file system
(www.m-w.com)
2002-07-29 02:51:07 +00:00
grant b4dfc38d21 add blank lines to editpart, ala editparttable.
this stops the table of partitions jumping about while using the mbr
editor.
2002-07-28 08:58:59 +00:00
wiz 5db23d2c5d enouth -> enough. 2002-07-26 01:00:39 +00:00
grant 9676dd8001 typo in comment. 2002-07-26 00:42:04 +00:00
grant b0f2d974df allow partitions i-p to be modified, from Masanori Kanaoka in
port-i386/17689, with minor changes by me.
2002-07-25 15:19:17 +00:00
grant e5d316be94 allow partitions i-p to be modified, from Masanori Kanaoka in
port-i386/17689, with minor changes by me.

add_rc_conf() needs a trailing \n.
2002-07-25 14:31:10 +00:00
rafal 04d70c3689 Fix PR port-sgimips/17567: sysinst wasn't installing/upgrading bootblocks on
the new disk.  This requires my previous changes to sgivol to get a non-
interactive mode.  While here, change the way sysinst invoked sgivol (it
called system(), now it uses run_prog()) so we don't mess up the logging
and scripting contexts.
2002-07-18 16:23:36 +00:00
scottr 9f0a09b27b Automatically select the appropriate kernel set based on the
kernel used to do the installation.
2002-07-18 05:35:00 +00:00
rafal 21b586407d Since the O2 kernel doesn't work, don't bother giving users a choice to
install it.  Discussed with Soren and Scott G. Taylor (who originally
suggested we do this).
2002-07-15 04:51:41 +00:00
rafal 4d8aea6332 Fix PR port-sgimips/17566: Install the INDY kernel set by default, since we
need one of the kernel sets installed (and since O2 support is currently not
working, it's easy to figure out which we should install 8-).
2002-07-12 14:22:16 +00:00
wiz 148bbc0647 Typos. 2002-07-09 14:49:24 +00:00
scottr e307d4c847 Rework sysinst so that it actually works for common cases. Notably, the
partition handling has been completely rewritten to address serious data
loss issues with Mac HFS partitions, and the a.out -> ELF upgrade has
been addressed. From Bob Nestor; part 1 of 2 of a fix for PR 15528.
2002-06-29 17:00:18 +00:00
itojun d002e9349c enable IPv6. 2002-06-21 08:20:09 +00:00
leo 07ad9a1532 Make it clear which Milan kernel (PCIIDE or ISAIDE) is selected. 2002-06-19 11:44:26 +00:00
lukem 1f5cf5c78c Setup default mbr_bootsel labels for used partitions, since the previous
default was for them to be empty, and that meant that they wouldn't get shown
at boot time.   Fix from Tyler Retzlaff <rtr@wasabisystems.com>
2002-06-14 03:29:28 +00:00
scw 39e26586a0 Use target_expand() when referring to files on the target filesystem. 2002-06-05 09:39:04 +00:00
scw 276ff16bb9 Quell a warning when a partition starts at sector zero.
This is perfectly legitimate on mvme68k.
2002-06-05 08:50:09 +00:00
tsutsui 9a006c64a6 Enable "kern-GENERIC" by default, otherwise "Full installation" will not
extract any kernel sets.
2002-06-02 17:28:35 +00:00
tsutsui e66a5b39e8 Don't call toggle_getit() for X11 fonts and servers in md_set_no_x().
They are disabled by default.
2002-06-02 16:01:00 +00:00
eeh 58d15437bc Add sysinst support for the walnut port. 2002-05-30 16:13:06 +00:00
tv 3a92d39fd3 Rip out the "special_kernel_list" code, as we now have differently named
kernel sets in dist_list[] instead.  If we want logic like this, it needs
to be re-added as twiddling the "on" state of the correctly named kernel.
2002-05-29 20:36:40 +00:00
rafal 4a3f0ef3a4 sysinst updates for sgimips from Scott Taylor with some tweaks from me.
For now, we keep the GENERIC/GENERIC_INDY sets, but make the labels a
bit clearer as to their purposes.

XXX: Still need code to install bootloader into volhdr; need either to
integrate into MI installboot or fix up sgivol (I have changes from Scott
for sgivol, just haven't folded them in yet).
2002-05-21 21:59:03 +00:00
lukem 9f9c6e35b1 convert to using usr/sbin/installboot.
(from Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>)
2002-05-20 16:10:33 +00:00
lukem 4af2890237 use new installboot 2002-05-20 13:31:26 +00:00
uch e27184bfd6 use MI make_bsd_partitions(). clean up the code. 2002-05-18 07:14:31 +00:00
lukem 073a06669e migrate to usr/sbin/installboot 2002-05-07 14:50:39 +00:00
bjh21 c778d09734 Synchronise the various lists of sets with reality. 2002-05-04 21:35:27 +00:00
bjh21 3785c22214 sysinst bits for acorn26. Basically the same as acorn32 for now. 2002-05-02 23:02:50 +00:00
leo 76fe1572d8 Add aout->ELF upgrade support. 2002-04-25 20:16:08 +00:00
shin 883a9619e2 make "kern-GENERIC" selected by default. 2002-04-21 11:21:53 +00:00
leo 177bcf6b76 Handle the atari kernel-sets. 2002-04-20 20:35:00 +00:00
thorpej bf27601931 * Fix the kernel set selection.
* Default X sets to "no".
2002-04-13 02:34:17 +00:00
thorpej 4dc58c48c7 First draft sysinst for evbarm -- more work needs to be done. 2002-04-13 01:47:52 +00:00
leo e6531b9a88 atari sysinst md-part 2002-04-12 21:15:52 +00:00
mycroft 73b187a06a Install kern-GENERIC by default. 2002-04-11 18:16:05 +00:00
skrll ac60400580 The results of my cats NWDO hacking.
This was tested using a custom INSTALL kernel. The current one is >4Mb
which the cats firmware can't currently boot. We need to decide what
needs to be removed from INSTALL.
2002-04-11 16:33:58 +00:00
hubertf f0799e74a5 Polish language translation of sysinst. Build with
make release SYSINSTLANG=pl
Contributed by Dawid Szymanski <dawszy@arhea.net> in PR 16237.
2002-04-09 19:47:57 +00:00
hubertf 3929182069 Polish language translation of sysinst. Build with
make release SYSINSTLANG=pl
Contributed by Dawid Szymanski <dawszy@arhea.net> in PR 16237.
2002-04-08 23:30:38 +00:00
thorpej 875238901e Garbage-collect the Filecore stuff, and make /usr the "d" partition
(RAW_PART == "c").
2002-04-02 17:46:20 +00:00
thorpej c7eb256693 Add aout2elf upgrade support. 2002-04-02 17:02:54 +00:00
thorpej 556ff2a401 The default kernel for Shark is now GENERIC. 2002-03-31 02:14:06 +00:00
matt 1da9c3f8d0 Add support for auto2elf UPGRADE support. 2002-03-30 21:55:11 +00:00
scw 26e4cbfa71 sysinst for mvme68k, based mostly on hp300's sysinst.
XXX: French language support needs some attention.
XXX: sysinst needs to be taught how to get sets from tape...
2002-03-24 22:04:04 +00:00
shin 50838200f5 delete kern-TX3922.
sync with i386.
2002-03-23 03:24:34 +00:00
gmcgarry e111c9550d Allow a complete cylinder for the boot code. 2002-03-17 05:38:11 +00:00
tsutsui fd7bd6f395 Handle a.out -> ELF library upgrade in md_update().
XXX No French message for emulbackup?
2002-03-16 17:26:55 +00:00
tsutsui 010ec39dbb First cut at sysinst for newsmips. Mostly copied from news68k. 2002-03-16 15:47:56 +00:00
tsutsui b322db6bea s/macppc/news68k/ in comments. (Oops) 2002-03-16 08:51:07 +00:00
tsutsui 1cdefcf3a6 Fix toggle_getit() args for md_set_no_x().
XXX It seems this should be handled without magic numbers..
2002-03-16 08:42:52 +00:00
tsutsui 72fc77e730 Fix typo in toggle_getit() arg. 2002-03-16 08:40:12 +00:00
tsutsui fd0eb9f1bd - Use common sysinst/bsddisklabel.c for md_make_bsd_partitions()
- Prepare md_cleanup_install() (XXX not tested)
2002-03-16 08:25:00 +00:00
gmcgarry b5dfc7ec7b Replace inappropriate comment about floppy with warning about failure
on low-memory machines.
2002-03-15 05:26:37 +00:00
gmcgarry 923c2a794d Remove debugging goo 2002-03-15 05:24:31 +00:00
reinoud a89c6bc776 Only select the RPC_WSCONS as default to prevent confusion and ending up
with an NC_WSCONS kernel (ahum)
2002-03-12 19:35:55 +00:00
reinoud 42dd65f262 Implement (/copy) from the generic way the option to keep the existing disk
layout... this was missing for quite some time.
2002-02-15 00:40:23 +00:00
reinoud 7ffc54f047 Fix typo.... 2002-02-14 15:28:31 +00:00
reinoud b9a12f956d Let the user choose between the other kernels available than just
`GENERIC'.
2002-02-14 15:25:02 +00:00
skrll 4cd25cd0e8 First cut at cats support. 2002-02-11 13:50:18 +00:00
thorpej 3fcc2a907a arm32 -> shark 2002-02-10 19:20:52 +00:00
gmcgarry 3101b620cc hp300 machine-dependent components 2002-02-10 01:14:05 +00:00
skrll a3a8c36b17 Factor out the aout library moving code for use in other platforms. 2002-02-03 22:21:55 +00:00
wormey 3beb955c29 Add definition to a variable. 2002-02-03 20:04:31 +00:00
reinoud 187b0b9771 Fix typo 2002-01-31 01:56:43 +00:00
reinoud b97d535232 Create a sysinstall part of our own... not my own choise (maintainability)
but since arm32's gonna go i'll have to.
2002-01-31 00:33:49 +00:00
minoura 9d9c30bd81 Correct argument order of installboot. 2001-12-10 03:09:03 +00:00
minoura 7d3c9783e0 Use new boot system. 2001-12-06 04:15:31 +00:00
thorpej 3a4956a5c8 On platforms for which there is more than one kernel set choice,
default the kernel sets to "no", thus requiring that the user
explicitly enable the one that is right for their system.
2001-11-29 23:24:23 +00:00
thorpej 0f33bc5dfa Update for the new kernel set names. 2001-11-29 23:20:56 +00:00
soren 4004df64a0 Add sgimips sysinst support from Scott G. Taylor. 2001-11-20 15:53:22 +00:00
briggs 7bd7e68996 First cut at sysinst for sandpoint. 2001-10-24 19:43:40 +00:00
hubertf 7dfbd02819 Only turn ttyE[1-9] on, and explicitly leave ttyE0 off, as recommended
in PR #14075. (Since PR #13249 was fixed, we have /dev/console enabled
in /etc/ttys on i386 by default!)
2001-10-15 22:49:36 +00:00
uch 0cbd019fc3 playstation2 support 2001-10-15 16:22:50 +00:00
jdolecek 785b85c14a glue in necessary IBM PS/2 kern set bits 2001-09-13 18:09:19 +00:00
simonb e5592e5454 Use "sd" only in disk_names. 2001-08-26 11:58:47 +00:00
wiz 41df6b74a9 partiton -> partition 2001-07-26 22:47:34 +00:00
scottr 8f69e0c022 After modifying the Apple Disk Partition Map, use the DIOCGDINFO/DIOCWDINFO
ioctls to refresh the in-core disk label.  From Bob Nestor.
2001-07-14 07:57:16 +00:00
thorpej a59a7e818b First pass at sysinst for the ARC port. This is a work-in-progress. 2001-07-04 16:56:01 +00:00
jdolecek d5c13f3228 Add 'ed' to list of known/valid disk names 2001-06-16 14:33:08 +00:00
briggs ae21cdde67 Make this compile again:
* Remove duplicate definition of "nobiosgeom"
	* Update to "new" edit_mbr() and define a basic md_bios_info().
2001-04-12 03:48:12 +00:00
wdk 9123196f19 sysinst utility for mipsco port 2001-02-19 07:38:44 +00:00
jmc d264c53a1d Add support for installing serial bootblocks. If biosboot_com0.sym exists
on the ramdisk image then ask which set of bootblocks to install (normal or
serial). If it doesn't exist, just install the normal ones. (small/tiny
images).
2001-01-27 07:34:39 +00:00
jmc b70406007d Fix various typo's so this compiles. 2001-01-23 01:22:32 +00:00
nonaka 8492c6a9e8 Add prep installer 2001-01-16 16:53:57 +00:00
mrg 1f4e0ae80c fix compile lossage on i386.
move some data & a function from bsddisklabel.c to disks.c.
2001-01-14 23:45:16 +00:00
mrg d436dd6641 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.
2001-01-14 02:38:13 +00:00
jdc 6b6028160d Use wrefresh(curscr) instead of clearok().
Suggested by Thomas Dickey.
2001-01-07 13:07:57 +00:00
jdc 885c8eaa06 Be paranoid and do a clearok() before we do a refresh(). 2000-12-31 13:08:05 +00:00
mrg 8da46e6897 de-__P()-ify 2000-12-22 10:12:12 +00:00
mrg c5e19f6801 s/sparc/sparc64/ in some comments. 2000-12-22 04:43:54 +00:00
jdc dab8e56b56 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?
2000-12-21 21:42:00 +00:00
minoura fa875fd970 Welcome message `If you booted from a floppy,...' is somewhat port-specific
instruction.
Create md_hello message and move that message to it.

Port-maintainers: please reflect the reality of your port.
Someone who can write french: please correct *.fr catalogue.
2000-12-03 01:54:46 +00:00
ad 57ea462da2 lsu -> ld, by popular request. 2000-11-26 17:44:02 +00:00
fvdl c13641ea40 NULL for the highest split set file for the xmisc set is wrong, make it "aa"
Also, correct the xserver split set extension.
2000-11-23 16:26:50 +00:00
abs 1d655fabae Try to upgrade a.out libraries. Currently just cut & pasted from the i386 port 2000-11-16 15:02:46 +00:00
fvdl 3c20e1e72d Add a message saying that a /emul or /emul/aout symlink has been renamed
to .old.
2000-11-12 15:33:26 +00:00
fvdl f86b12aaef Handle existing /emul symlink better when it points to nothing; same
with /emul/aout. Prevents unexpected sudden exits because during
aout lib move in upgrade.
2000-11-12 15:28:48 +00:00
fvdl 350e232678 Wrap checking the BOOTMODEL env var in DEBUG, it was intended for that
purpose originally, and this check only messes up selection of the
right kernel for the laptop install set.
2000-11-07 01:14:22 +00:00
fvdl 14506ffd18 Re-add xmisc set to menu file, which I accidentally deleted earlier.
From hubertf.
2000-10-27 07:49:14 +00:00
fvdl 02687a51bd Handle moving a.out shared libraries for X as well. 2000-10-26 23:29:25 +00:00
minoura 807d7f0327 swapon when the system memory is smaller than 6MB. 2000-10-25 14:48:35 +00:00
fvdl ec11b62dc9 Handle split sets for special kernel sets (-laptop and -tiny) correctly. 2000-10-20 14:40:25 +00:00
ad 9e42854f7b Allow install on lsu disks. 2000-10-19 15:09:11 +00:00
ad d53e399d91 ca -> lsu 2000-10-19 15:02:38 +00:00
fvdl faf5b4b7d0 Adapt for format change in mbr editing header; it now always displays
the whole partition, and the total disksize.
2000-10-17 19:52:13 +00:00
fvdl ead80bd575 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.
2000-10-17 19:50:39 +00:00
fvdl 30b8888d4a * 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.
2000-10-11 23:47:55 +00:00
fvdl 3fd1dc7ed3 Create the disktab file directly, no need to waste precious inodes/space
in ramdisks with disktab.preinstall.
2000-10-11 22:58:17 +00:00
fvdl beea1cfd99 Add 2 defines for a.out library move code. 2000-10-11 11:05:03 +00:00
fvdl 90d488a637 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.
2000-10-11 11:04:43 +00:00
fvdl f7cac0d34b Add empty stubs for md_init(). 2000-10-02 12:05:10 +00:00
fvdl e615284d83 * 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
2000-10-02 09:36:24 +00:00
thorpej 0ae6087eae Add xmisc set. THIS METHOD OF HANDLING SETS MUST DIE!!! 2000-10-01 22:57:15 +00:00
simonb db6547104d Bump default root partition size to 64MB due to growth and number of
static binaries in /bin and /sbin.
2000-09-28 12:39:16 +00:00
fvdl f84d9da649 Remove outdated comment. 2000-09-27 20:02:16 +00:00
fvdl 09aafa8795 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.
2000-09-27 12:42:04 +00:00
fvdl 6bf2c525a2 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.
2000-09-26 23:12:44 +00:00
hubertf 5fffd5f0c2 * Fix changing of /etc/rc.conf after the main file moved recently.
'rc_configured' is still changed via sed's s///, wscons=yes is appended
   via "echo >>".
 * make target-routines (target_expand(), and whatnot) work if no root
   disk was selected. With this, sysinst can now be used on a "normal"
   system to adjust the system's timezone. Use the entry in the "Utilities"
   menu for that.

Both changes were tested by a full i386 installation.
2000-09-20 19:53:35 +00:00
minoura bf7d1f145b - Correct options for installboot.
- sed is not in the ramdisk, since it is too large.
2000-09-16 13:12:09 +00:00
abs 235368355b MSG_fspart only takes onn argument - multname
Noted by Charles Carvalho <carvalho@employees.org>
2000-09-11 21:29:52 +00:00
mrg 03a1aeebd0 first cut sysinst for sparc64. seems to work OK. 2000-08-19 13:22:40 +00:00
thorpej 3457a101f5 The `secr' set no longer exists; crypto is now part of the base
distribution.
2000-07-25 18:17:03 +00:00
minoura 74704eb9e4 Support INET6. 2000-07-05 16:07:49 +00:00
minoura 3c32824e8a Use newdisk(8) instead of built-in version. 2000-06-22 14:22:41 +00:00
tsutsui c49a328d6f Turn off xserver and xfonts sets on default. 2000-06-07 13:07:41 +00:00
shin 7b961f3147 fix disk usage. 2000-05-23 12:38:39 +00:00
hubertf 6ff1541020 Whitespace fix. 2000-05-12 01:00:08 +00:00
hubertf 601fd8e3ee Add some "\n"s (one to make things look better, and one for consistency). 2000-05-11 02:27:25 +00:00
hubertf d30469d828 Move the configbootsel selection box down some lines so it doesn't
overwrite anything important. (The moving down hides some elements
of the selection box, but we can scroll).

Took some digging to find out that aparently all selection boxes default
to a upper row of 12 and some more digging on how to change it.
2000-05-11 02:26:24 +00:00
hubertf e20160f1a2 add blank line after bootselectors partition list 2000-05-11 02:24:36 +00:00
hubertf dd8cb52a5d Enable wscons by default, by
* setting wscons=YES in etc/rc.conf
 * setting ttyE* to "on" in etc/ttys
2000-04-10 01:40:51 +00:00
jdolecek 97c7b9f310 Correct typo. Fix sent by Dave Huang in port-mac68k/9788 2000-04-05 16:27:16 +00:00
thorpej e1e415963d Add an option of the `secr' set (but default it to OFF), and allow the
kernel/base/etc sets to be toggled.
2000-03-28 00:29:53 +00:00
ad d0084dcebe Allow install on /dev/ca??. 2000-03-16 14:55:23 +00:00
fvdl 97965ecea8 Convert ask_sizemult to take an argument, so that MBR using ports can
actually call it with the right sectors per cylinder size during
MBR partitioning.
2000-03-14 22:42:48 +00:00
shin a992c45b8e increase STDNEEDMB value. 2000-03-14 01:57:59 +00:00
jun 788c0236ac IPv6 option enable. 2000-02-28 05:17:50 +00:00
shin 74857849d3 comment out IPv6 support (not tested). 2000-02-21 13:28:30 +00:00
shin 437bbdf838 fix storage requirement. 2000-02-21 13:23:17 +00:00
is f031593c55 Initial Amiga support for sysinst by Bernardo Innocenti. 2000-02-20 20:34:57 +00:00
shin 391a6bca4e add some '#ifdef's to clarify the difference between i386 and hpcmips. 2000-01-22 02:59:59 +00:00
shin f81f1e9333 first cut of sysinst for hpcmips.
based on i386 version.
2000-01-21 11:25:58 +00:00
cgd 9a222ad604 remove .cvsignore files; if the tree doesn't clean completely, that's a bug 2000-01-16 08:27:40 +00:00
itojun 1c5b5f62fc 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.
2000-01-04 08:33:51 +00:00
tsutsui a109943094 Initial import of news68k port. 1999-12-09 14:53:00 +00:00
simonb 5c10c3a1c1 Remove the "disklabel -W" when installing the bootblocks now that the
extra bounds check in the rz driver has been removed.
1999-11-28 06:32:21 +00:00
simonb bf997953d8 Use installboot(8) to install the bootblocks.
XXX: Need "disklabel -W" for now to enable writing to the label area.
1999-11-28 03:38:10 +00:00
simonb 6db05d52c4 Trim down a comment. 1999-11-28 03:37:01 +00:00
minoura e7fabd95bc Set ptstart to reserve system area. 1999-11-27 14:03:22 +00:00
briggs d5fa4fdb66 Put a leading slash on the device name used in md_pre_disklabel().
The pathname was a relative path.  At this point, we should always be
using the miniroot's /dev tree.  Fixes PR install/8384 from Bob Nestor.
1999-09-12 15:29:38 +00:00
abs c15135486d Add generic make_bsd_partitions() in bsddisklabel.c useable by virtually all
orts. Since port specific information is in appropriate arch/.../md.h
bsddisklabel.c is currently #included by arch/.../md.c.
I'm not totally happy about this, but my concience is somewhat salved by the
overall reduction in breakage.
Initially only pmax, sparc, vax and x68k are using bsddisklabel.c.
While I'm here adjust defs.h for more than eight partitions in a generic
fashion.
1999-08-16 08:29:04 +00:00
abs 1e7a66ebab Handle the 'custom' case in a sane fashion (do not create zero length
partitions under any circumstances, allow no swap, do not *overwrite* /usr
when listing additional partitions, and try to abstract at least most of the
magic numbers to #defines at the top.
Also sync up as much as possible to make this easier in future.
Still need to attack the other arch's md.c files.
1999-08-10 15:54:55 +00:00
simonb 89e2eec2fa During a custom partition layout, don't create an empty /usr partition
that newfs fails on if / and swap take up the entire disk.
1999-08-07 15:56:31 +00:00
simonb b2651d5700 Nuke md_copy_filesystem() for the pmax - tested on both a ramdisk kernel
install and NFS diskless client install.
1999-08-07 15:45:26 +00:00
abs 7bcdffa983 If all disk is allocated to root and/or swap do not prompt for a (bogus) /usr.
Fixed PR#7741
If the default swap is smaller than the remaining disk, truncate to the
available space.
Set rc_configured to YES in md_cleanup_install()
1999-07-14 16:47:37 +00:00
abs 191e23342f Create a symlink of netbsd to netbsd.GENERIC in md_post_newfs().
Not ideal, but do not want to change kern.tgz until we replace the miniroot
install.
1999-07-14 16:41:31 +00:00
minoura 93a7108a18 Fixed md_newdisk().
I commited an old debug version by mistake at the last commit.
1999-07-11 14:12:21 +00:00
fvdl d25150d087 Don't try to convert the CHS values if not needed. Add extra flag
to write_mbr to for this.
1999-07-10 23:07:15 +00:00
minoura 4b69c08a24 x68k part of sysinst. 1999-07-09 15:29:44 +00:00
cgd 891f175906 beware whitespace at ends of lines in messages: it's actually meaningful!
while here, clean up other whitespace at EOLs in msg files to make grepping
easier.
1999-07-06 06:10:04 +00:00
cgd b62c0ee8ad get hard-coded messages out of the source, into the message file. (Gee,
you'd think that this wouldn't have been a problem to begin with...)
1999-07-04 22:52:22 +00:00
cgd 945d434250 convert the custom distribution set table to be formatted with
msg_table.  needed slight tweaks in the MD menus, for menu placement.
(one XXX TRANSLATE in msg.mi.fr.)
1999-07-04 22:31:37 +00:00