Commit Graph

515 Commits

Author SHA1 Message Date
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
cgd add839488b instead of using msg_printf_add("\n") to add a newline to the output,
add a 'newline' message and use msg_display_add().
1999-07-04 21:52:11 +00:00
cgd 0f1bc6e9b6 fix slight finger-brain disconnect 1999-07-04 10:45:37 +00:00
cgd 1517a78b6d minor adjustments to make this stuff display properly with the automatic
formatting now done by the message code.  Also, some minor cleanup of
problems noticed while adjusting things.
1999-07-04 09:41:02 +00:00
cgd 5c3428778d convert tables to use the new table formatting functons. i386 tested,
mac68k and bebox bits compiled to the extent possible.  (bebox seems
broken, with duplicated menu names, but it doesn't look like that's my
fault.)
1999-07-04 08:01:39 +00:00
cgd 9db718d7b7 arm32 has an X server set 1999-06-27 02:10:58 +00:00
cgd 721d94b596 nuke md_copy_filesystem()'s contents. it now just returns 0. 1999-06-27 00:23:07 +00:00
cgd 59d3c08e03 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.
1999-06-22 00:57:06 +00:00
cgd a1d9660ade typos noticed in PR#7248 1999-06-20 06:42:05 +00:00
cgd a640bc7014 copyright notice typo fixups, as noticed in PR#7248. This software
was developed, not develooped.
1999-06-20 06:08:13 +00:00
cgd d15ec67e7c Moved to ./arch/mac68k/msg.md.en,v 1999-06-20 05:48:42 +00:00
cgd 36c2855ac2 Moved from ./arch/mac68k/msg.md.eng,v 1999-06-20 05:48:41 +00:00
cgd 4641e1cceb Moved to ./arch/mac68k/menus.md.en,v 1999-06-20 05:48:39 +00:00
cgd 109d4d2820 Moved from ./arch/mac68k/menus.md.eng,v 1999-06-20 05:48:38 +00:00
cgd f0eb5d2943 Moved to ./arch/bebox/msg.md.en,v 1999-06-20 05:48:36 +00:00
cgd 0ca07199cd Moved from ./arch/bebox/msg.md.eng,v 1999-06-20 05:48:35 +00:00
cgd 1e1bd40fc1 Moved to ./arch/bebox/menus.md.en,v 1999-06-20 05:48:34 +00:00
cgd d909fb233b Moved from ./arch/bebox/menus.md.eng,v 1999-06-20 05:48:33 +00:00
cgd 7d4a1bcfd0 Moved to ./arch/vax/msg.md.en,v 1999-06-20 05:48:21 +00:00
cgd e6e1d712f2 Moved from ./arch/vax/msg.md.eng,v 1999-06-20 05:48:20 +00:00
cgd 32c1996a86 Moved to ./arch/vax/menus.md.en,v 1999-06-20 05:48:19 +00:00
cgd 02e778ce3f Moved from ./arch/vax/menus.md.eng,v 1999-06-20 05:48:18 +00:00
cgd 53ad1be219 Moved to ./arch/macppc/msg.md.en,v 1999-06-20 05:48:14 +00:00
cgd 1209c0ae3d Moved from ./arch/macppc/msg.md.eng,v 1999-06-20 05:48:13 +00:00
cgd 9722658a75 Moved to ./arch/macppc/menus.md.en,v 1999-06-20 05:48:13 +00:00
cgd b26232be40 Moved from ./arch/macppc/menus.md.eng,v 1999-06-20 05:48:12 +00:00
cgd 6979132b6e Moved to ./arch/sparc/msg.md.en,v 1999-06-20 05:48:11 +00:00
cgd 251277862f Moved from ./arch/sparc/msg.md.eng,v 1999-06-20 05:48:10 +00:00
cgd c991293875 Moved to ./arch/sparc/menus.md.en,v 1999-06-20 05:48:09 +00:00
cgd 9542802224 Moved from ./arch/sparc/menus.md.eng,v 1999-06-20 05:48:08 +00:00
cgd 667ca88f62 Moved to ./arch/pmax/msg.md.en,v 1999-06-20 05:48:07 +00:00
cgd 947338be21 Moved from ./arch/pmax/msg.md.eng,v 1999-06-20 05:48:06 +00:00
cgd 827fb383e3 Moved to ./arch/pmax/menus.md.en,v 1999-06-20 05:48:06 +00:00
cgd d80758862c Moved from ./arch/pmax/menus.md.eng,v 1999-06-20 05:48:05 +00:00
cgd caa48ae9df Moved to ./arch/pc532/msg.md.en,v 1999-06-20 05:48:03 +00:00
cgd 95c31e6136 Moved from ./arch/pc532/msg.md.eng,v 1999-06-20 05:48:02 +00:00
cgd 25bbeb1bc7 Moved to ./arch/pc532/menus.md.en,v 1999-06-20 05:48:02 +00:00
cgd 64c6534433 Moved from ./arch/pc532/menus.md.eng,v 1999-06-20 05:48:01 +00:00
cgd 185d9f5c26 Moved to ./arch/i386/msg.md.en,v 1999-06-20 05:47:59 +00:00
cgd 5b971a4435 Moved from ./arch/i386/msg.md.eng,v 1999-06-20 05:47:58 +00:00
cgd 7cede0dbab Moved to ./arch/i386/menus.md.en,v 1999-06-20 05:47:57 +00:00
cgd 88f46e6a38 Moved from ./arch/i386/menus.md.eng,v 1999-06-20 05:47:56 +00:00
cgd 1ca2706d9b Moved to ./arch/arm32/msg.md.en,v 1999-06-20 05:47:53 +00:00
cgd 14205fc529 Moved from ./arch/arm32/msg.md.eng,v 1999-06-20 05:47:52 +00:00
cgd 34c597ab48 Moved to ./arch/arm32/menus.md.en,v 1999-06-20 05:47:51 +00:00
cgd 8af3c264a7 Moved from ./arch/arm32/menus.md.eng,v 1999-06-20 05:47:50 +00:00
cgd 5fd4cb736d Moved to ./arch/alpha/msg.md.en,v 1999-06-20 05:47:49 +00:00
cgd 737bb75981 Moved from ./arch/alpha/msg.md.eng,v 1999-06-20 05:47:48 +00:00
cgd 4d6228ce87 Moved to ./arch/alpha/menus.md.en,v 1999-06-20 05:47:47 +00:00
cgd 953eba11a8 Moved from ./arch/alpha/menus.md.eng,v 1999-06-20 05:47:46 +00:00
cgd ab6f2f5d56 since all horizontal placement specs here are attempts to center the menu,
just stick with the new default (horizontal centering).
1999-06-20 05:44:26 +00:00
cgd 4ffb63388c kill bogus spaces before and after menu titles. the menu code now positions
titles correctly.
1999-06-20 01:23:32 +00:00
cgd 8d188fe03a fix a slight bogon in the geometry approval message. (This is the
correct disk -> This is the correct geometry.)  (Thanks to tls and
wrstuden for help w/french.)
1999-06-19 01:23:52 +00:00
cgd c42289089f nuke md_copy_filesystem()'s contents. it now just returns 0. 1999-06-18 05:08:57 +00:00
bouyer 145e79f160 Sync with the english version. 1999-05-18 18:07:25 +00:00
fvdl e254cfed65 Since our mbr code and bootselector are only 512 bytes long, only
read/write that much. Previously, too much was written back to
disk (although it didn't do any harm because of the sequence
of execution).

Also, upgrade the MBR type from 386bsd -> NetBSD if needed during
an upgrade operation.
1999-05-02 15:26:22 +00:00
fvdl 337300d376 Change partition type if we're installing into an old 386bsd partition.
Check if there's no active partition after MBR editing.
Ask for own MBR to be installed if we're booting from out of CHS range.
Ask for bootselector to be installed if > 1 OS, and configure it.
1999-05-02 13:07:15 +00:00
abs 4a2304f936 Cleanup to work on sparc again 1999-04-26 05:04:50 +00:00
ross 944dc00f76 * Umm, the installboot(8) run is important. Don't ignore errors!
* Use the current boot program schema.
1999-04-23 19:10:54 +00:00
tsubai 9751244932 md_post_newfs() should return int. 1999-04-23 01:38:35 +00:00
simonb eec6041cf5 An empty stub routine should return success not failure! 1999-04-21 11:55:07 +00:00
ws aded74faa1 Update the set split counts for floppy installation to match reality. 1999-04-19 13:17:09 +00:00
simonb c6f8d15017 md_post_newfs() now returns int after the latest round of changes. 1999-04-16 15:42:32 +00:00
ender 3a4b99f66e Make this compile again. 1999-04-16 08:29:15 +00:00
nathanw d69ac94192 Make this compile again (a return -> return foo was missed when
md_copy_filesystem was made to return an int in 1.10).
1999-04-15 05:01:04 +00:00
bouyer 5c7e21f9cb - 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().
1999-04-13 14:49:56 +00:00
bouyer be743ed36b - 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.
1999-04-11 22:40:19 +00:00
jonb fb618761b7 Make this compile again... fix a couple of small typo's 1999-04-09 12:44:44 +00:00
bouyer 72d28a06a3 Oups, missed a lot of run_prog() calls when I changed the prototype. 1999-04-09 10:43:56 +00:00
bouyer 04f9354ab3 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.
1999-04-09 10:24:38 +00:00
bouyer a17071efea Sync with .eng versions. 1999-04-08 12:54:52 +00:00
tsubai b8f166d4da Fix menu item number. 1999-04-06 09:31:40 +00:00
simonb 277c24dc4c Don't include <sys/disklabel.h> - "defs.h" does this us with the
right #defines so that we get the filesystem type names.
s/fstype/fstypenames/
1999-04-05 06:24:17 +00:00
fvdl a5d73e00eb Rework the MBR code, and some of the labelling code.
* Use structures, not 2-dimensional arrays..
	* Use the DIOCGDEFLABEL ioctl to get the disk information,
	  to avoid confusion with (older) labels.
	* Don't ever call fdisk for partitioning. This was the
	  source of much confusion.
	* For the i386, use the BIOS geometry information passed by
	  the bootblocks.

Lots of things left to do, but it's a start.
1999-03-31 00:44:48 +00:00
ender c32aac7964 Uncomment some file copies now that the files actually exist. 1999-03-26 08:52:44 +00:00
mark f7644e2429 Allow various X11 sets to be installed. 1999-03-26 03:03:37 +00:00
mark 1f8be737e2 Pull in cgd's improved filecore bootblock checksumming code from
sys/arch/arm32/arm32/disksubr_acorn.c
1999-03-26 03:02:45 +00:00
ender e7a6b35eae The sysinst utility for NetBSD/mac68k. From Bob Nestor <rnestor@metronet.com>
in PR #6867 with some cleanup by me.
1999-03-22 08:37:31 +00:00
fvdl a4ca20e23e Start cleaning up geometry code by storing the disk geometry in a structure
with proper names, not an integer array with is numerically indexed.
1999-03-14 14:19:05 +00:00
garbled ed77015dc8 When special casing these commands with do_system, remember to add
manual logging and scripting calls, so everything is recorded in it's
proper location.
1999-01-25 23:55:10 +00:00
garbled 851ee9e397 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.
1999-01-25 23:34:20 +00:00
garbled 5a277f5dfd Fix thinko. Thanks to mrg. 1999-01-23 15:54:31 +00:00
garbled 10218daeef Correct some oversights in the sysinst conversion. arch/alpha/md.c and
others allready had these fixes.
1999-01-23 06:19:17 +00:00
tsubai da7b796faf Uncomment X11 stuff. 1999-01-21 08:55:40 +00:00
garbled 865c31ac7b 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.
1999-01-21 08:02:17 +00:00
tron 25e26cd4d4 NetBSD-current uses 169 as MBR partition ID, not 165.
Fixes PR install/6737 by Soren S. Jorvang.
1999-01-11 23:23:28 +00:00
ragge 42b291e36f Sysinst support for vax. 1998-11-30 22:36:00 +00:00
sakamoto 4f70b04b16 Add bebox install floppy and sysinst files. 1998-11-19 08:58:02 +00:00
bouyer e45d95cb56 Make the warning about whole-disk installation less ambigous. 1998-11-11 17:58:42 +00:00
bouyer fa7460bdff Sync with menus.md.eng 1.15, msg.md.eng 1.7 1998-11-11 16:04:41 +00:00
bouyer d9605b4cef Translation of recently-added messages, from Stephane Engel. 1998-11-10 15:06:29 +00:00
jonathan d325644fcd Fix thinko in previous commit (spelling mistake in argument name). 1998-11-08 02:55:07 +00:00
jonathan 39a8d7790a Use MI function label.c:savenewlabel() in MD code to to save labels,
now that cut-and-paste errors are resolved and MD changes unified.
Postponed for i386, pmax until 1.3.3 frozen.
1998-11-08 02:11:23 +00:00
jonathan bdc004ebc2 Fix lossage from overly-aggressie undoing of i386 'd' partition lossage:
alpha, sparc, ppc md.c files had disktab string ":sd#.." to save
disklabel sector-size, when they really need ":se#..."
(Can now make this MI.)
1998-11-08 01:45:45 +00:00
jonathan 1823e2d762 Add text to `whole disk'' vs `normal' menu that explains to the user
just what the hell sysinst is asking for.  (Why do we include the
`dangerously dedicated at all?)

Fix dangerous UI botch: make `normal' install the default, not `whole disk'.
1998-11-07 20:57:52 +00:00
jonathan 06079cb5e7 Expand messages prompting for BIOS geometry; say explicitly that it's
the BIOS that's being asked for, and that the real geometry is for
comparison only.
1998-11-07 20:17:28 +00:00
simonb df9541e68b Move all partitioning menus up by one, and add an entry (two for the
i386) so that the partition menu items match the selector letters).

XXX: All the .fr files need checking - look for the comment
	/* XXX: ENGLISH -> FRENCH */
1998-11-03 13:26:03 +00:00
erh b3edb8ba74 Add braces to make egcs happy. 1998-10-12 17:00:43 +00:00
mark 0220416488 Miscellaneous maintainance and debugging.
Fix several size / offset calculation errors.
Make some of the default partition sizes more realistic.
1998-10-06 01:43:12 +00:00
mrg a93789ab6a add a "ta=4.2BSD" to disktab. fixing choosing X sets to install. 1998-08-30 09:08:52 +00:00
tsubai 04e0026f9b Add md part of sysinst. 1998-07-29 05:41:55 +00:00