Commit Graph

888 Commits

Author SHA1 Message Date
tsutsui
0409a49e97 "NOMAN= yes" -> "MKMAN= no" 2001-03-17 07:10:54 +00:00
dogcow
84e3a863c2 missed a \n after dhclient_flags=\"%s\". 2001-03-06 09:22:40 +00:00
abs
ef51389957 Update the pleasemountroot message to indicate which root needs to be
mounted, and what needs to be done.
2001-02-26 16:32:53 +00:00
cgd
668a4dd967 convert to use getprogname() 2001-02-19 22:39:39 +00:00
wdk
9123196f19 sysinst utility for mipsco port 2001-02-19 07:38:44 +00:00
tsutsui
899149f1e5 Add x_mount, which does not include any MOUNT_PROGS.
Installer does not require all vfs progs and all binaries
are crunched after all.
2001-02-18 06:15:48 +00:00
tsutsui
b5a9f7605f Add x_umount to SUBDIR. 2001-01-31 20:48:11 +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
lukem
de983b4cb1 use more standard %ll_ in favour of %q_ 2001-01-04 16:17:14 +00:00
jdc
885c8eaa06 Be paranoid and do a clearok() before we do a refresh(). 2000-12-31 13:08:05 +00:00
mrg
24939a4846 don't use -Os on sparc64, it causes a ICE in gcc 2.95.2. 2000-12-27 08:12:01 +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
hubertf
db8b15ae28 A sane distrib doesn't only need etc.tgz and kern.tgz, but also base.tgz.
Check for it!

Fixes PR 11634 by Wayne Berke <wayber@rcn.com>
2000-12-18 09:39:50 +00:00
hubertf
55e87ae551 Do not tell the user we've newfs'd his disks when upgrading.
May safe him a heart attack or two.

Fixes PR 9655 and some others.
2000-12-18 09:18:46 +00:00
hubertf
3df3bcf30b Fix typo in calculation of partition's end (s/mbrp_size/mbrp_start/).
Fix reported in PR 7556 by Arne Juul <arnej@math.ntnu.no>
2000-12-18 04:52:52 +00:00
jmc
927b45cf65 After confirming the network setup should be saved, make sure dhcp is enabled if it was used on install 2000-12-17 22:55:53 +00:00
jmc
c111d88861 Add makefile goo so it'll properly rebuild the menu files if osrelease.sh changed 2000-12-17 09:22:47 +00:00
mrg
900169f00c minor KNF. 2000-12-06 04:53:37 +00:00
wiz
8ebc8eafe0 Fix typos in comments. 2000-12-04 22:47:02 +00:00
wiz
a6e6452673 Remove some items I believe fixed/done. Coreect speilnk. 2000-12-04 20:27:02 +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
tv
756cce5b1b Don't blindly write block 0 -- try reading it in, zero only the Sun label
section, and then write it back.  This allows other boot installers to work
*before* running mksunbootcd (saving space from rounding in some cases).
2000-11-29 19:47:31 +00:00
ad
57ea462da2 lsu -> ld, by popular request. 2000-11-26 17:44:02 +00:00
simonb
c4a144e6ed Close list_file after we're finished with it. 2000-11-26 01:11:26 +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
tv
c6610a4af0 Back out 1.75 by request of fvdl. 2000-11-15 20:07:39 +00:00
hubertf
9303852347 All sysinst ports automatically set rc_configured=YES now, so delete
that text after install/upgrade. Hint at disabling/enabling services
in /etc/rc.conf though.

Noted in PR 11499 by Peter Seebach <seebs@plethora.net>
2000-11-14 23:03:35 +00:00
fvdl
3f3dfb39a3 For filesystem checks, skip any 'noauto' entries. Avoids problems
when upgrading a system that has a 'noauto' entry for a floppy
or CD device that has type ffs.
2000-11-14 13:27:49 +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
c0ffae8285 Oops, add missing space after '-c 3'. 2000-10-31 16:02:06 +00:00
fvdl
ddfa644677 -c 2 -> -c 3 2000-10-31 11:19:50 +00:00
fvdl
ef28de5011 fsck -c -> fsck -c 2 2000-10-31 10:41:43 +00:00
pk
03013ae336 umount(8) supporting local filesystems only; avoids pulling in tons
of networking functions.
2000-10-30 22:58:02 +00:00
fvdl
448f90f01b Add a note about password files in the message about what to do minimally
after an upgrade; don't want people to end up multi-user with empty
root passwords.
2000-10-27 12:44:07 +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
44c5ba4a36 Print an install complete message; this got lost when I changed things
to move this to after zetting the time zone.
2000-10-22 22:57:04 +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
pk
9182a99111 We need <fcntl.h> 2000-10-19 14:42:57 +00:00
tv
4e6c453a69 Make this compile with the updated dhcp. 2000-10-18 18:26:00 +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
8a696e8ea8 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.
2000-10-17 19:44:28 +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
38dbc727ef Don't abort when trying to remove a directory marked as obsolete that does
not exist.
2000-10-11 11:10:46 +00:00
fvdl
16d465114d 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.
2000-10-11 11:10:11 +00:00
fvdl
57ffac419f Add message for a.out library move failure case. 2000-10-11 11:06:47 +00:00
fvdl
d8be7da3a1 Externalize concat_paths, it is used by arch/i386/md.c now. Add
target_realpath prototype.
2000-10-11 11:06:03 +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
itojun
cd4ef33b25 need libm. PR 11162 2000-10-08 12:37:06 +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
fvdl
4ee4b50498 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().
2000-10-02 09:26:26 +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
fvdl
40cd491caa 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)).
2000-09-26 13:26:02 +00:00
bouyer
acb9f8aefa Make change similar to msg.mi.en 1.69. From Hubert Feyrer. 2000-09-21 17:12:40 +00:00
hubertf
d2c5531d61 Remove some stale debug code, OK'd by itojun 2000-09-20 21:28:51 +00:00
hubertf
10384ae3ba 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 ...''
2000-09-20 21:21:14 +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
hubertf
b438f1b65b Improve wording for timezone selection menu a bit. 2000-09-20 19:46:33 +00:00
hubertf
5f9422b41a Tell people that the default values for /etc/rc.conf are in
/etc/default/rc.conf. (People moving files should care for this...)
2000-09-20 19:42:04 +00:00
wrstuden
fec34c3630 Tell make not to look for init in its path. This prevents make from
replacing the init in src/sbin/init with the small init we make here.
2000-09-19 20:40:19 +00:00
darrenr
8c0d804feb fix problems building a distribution on i386
re. PR's 11023, 10991, 10978 (others ?)
2000-09-18 11:56:09 +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
matt
79f8ad425f Add missing directories so make obj DTRT. 2000-09-12 16:06:23 +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
hubertf
caaae66450 Move aside X link before /etc, and move the X link back if moving /etc fails.
Else if moving X fails, the system will end with no /etc.
2000-09-09 00:21:36 +00:00
hubertf
71be3a3b99 When upgrading and /usr/X11R6/bin/X is a symlink, move it aside (X.old)
before extracting sets, and move it back afterwards, to save the information
which X server to use.

Adresses PR 10935 by Dan McMahill <dmcmahill@netbsd.org>
2000-09-08 02:50:42 +00:00
minoura
56165ba9c6 Enable INET6 on x68k.
Use ${MACHINE} instead of ${MACHINE_ARCH}, since the installer is
built per-${MACHINE} based.
2000-09-05 16:06:49 +00:00
minoura
304befe761 Enable INET6 on x68k.
Use ${MACHINE} instead of ${MACHINE_ARCH}, since the installer is
built per-${MACHINE} based.
2000-09-05 15:49:28 +00:00
hubertf
a042bcfea0 set_timezone:
* If etc/localtime can't be readlink(3)'d, assume the default time zone is
   UTC
 * if errors occur (malloc, fts_open, fts_read, menu generation fails),
   skip timezone setting instead of terminating sysinst.
2000-08-31 01:10:43 +00:00
abs
bd9b9e0b4c Shave another few bytes here and there - compile with -Os 2000-08-22 14:06:37 +00:00
mrg
03a1aeebd0 first cut sysinst for sparc64. seems to work OK. 2000-08-19 13:22:40 +00:00
hubertf
caa284ac57 * 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
2000-08-15 01:08:00 +00:00
tshiozak
2ef55c239a Add __mb_cur_max and rename setlocale function.
(Lack of __mb_cur_max causes to import setlocale.o in libc.a
and causes conflict of symbol, pointed out by Johan Danielsson.)
2000-08-11 19:58:34 +00:00
jdolecek
0e25756aee s/LANG/SYSINST&/ - the former one clashes with variable commonly
used to choose locales
2000-08-11 13:05:15 +00:00
hubertf
41894d882b in ftpsource: Add a space after host, directory, etc.'s %s
to prevent menuc(?) from putting all things in one line

(I don't know since when we got this "auto-wrapping" stuff,
and it may be nice for text paragraphs, but it's a PITA for
tables etc.)
2000-08-10 17:06:02 +00:00
leo
a3495b2d17 smaller ed(1) 2000-08-09 13:35:23 +00:00
hubertf
627cce8f8d Document -f flag
XXX someone please check the french translation ;-)
2000-08-07 15:56:34 +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
itojun
738859d74e do not skip IPv6 configuration menu on dhcp configuration.
do not save address/netmask/default router, if we got them from dhcp.
(we shouldn't do that).  if we keep any of dhcp config into /etc, we shoul
update rc.conf to run dhcp again.
2000-07-24 10:52:28 +00:00
itojun
a3c60d7535 need -DCLIENT_PATH to compile the latest dhclient. not 100% sure if it's
completely right.
2000-07-24 07:59:28 +00:00
itojun
006f0a5618 run IPv6 configuration even if we use dhcp. background:
- on a IPv6/v4 dual stack network, it makes more sense to configure both.
- also, many of IPv4/v6 dual stack network requires us to contacd DNS
  over IPv4 transport.
discussed with cyber@netbsd.org.
2000-07-24 06:05:51 +00:00
jhawk
f893f0e7e2 Use msg_clear() + msg_table_add() instead of msg_display() when showing
the ftpsource message, so that the short lines are not paragraph-filled.
2000-07-06 20:25:26 +00:00
minoura
74704eb9e4 Support INET6. 2000-07-05 16:07:49 +00:00
itojun
2d3b669a75 ping ff02::2 instead of ff02::9. ff02::9 indicates RIPng capable interface,
which does not necessarily visible.  ff02::2 indicates routers.
2000-07-02 15:07:52 +00:00
wiz
dd3a57931e leave curses before rebooting (as seen in menus.mi.fr) 2000-06-29 16:47:09 +00:00
briggs
379713ee71 Define SMALL. 2000-06-26 12:34:05 +00:00
minoura
3c32824e8a Use newdisk(8) instead of built-in version. 2000-06-22 14:22:41 +00:00
simonb
ec2eacc1f6 Add a -DSMALL dmesg that uses sysctls only. 2000-06-20 01:52:11 +00:00
cyber
cbefbdefce dhclient support added
only invoked if dhclient is present on install image
2000-06-18 23:50:02 +00:00
hubertf
2c8ac0d812 don't worry about non-existing files when deleting obsolete files
in the upgrade-case. just skip them silently.
2000-06-18 13:40:41 +00:00
hubertf
570a88792c s/cause cause/cause/ 2000-06-17 17:40:32 +00:00
cgd
db755e7c76 sweep of my licenses (userland files w/o only my copyright) for
consistency.  (no functional changes)
2000-06-14 17:24:02 +00:00
cgd
d220ca5ba3 fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well.  No functional changes.
2000-06-14 06:48:47 +00:00
jtk
8a4c44eac9 Fix up to reflect source changes in dhclient 2000-06-12 02:36:18 +00:00
tsutsui
c49a328d6f Turn off xserver and xfonts sets on default. 2000-06-07 13:07:41 +00:00
matt
cd116b1569 Add fddi.c 2000-05-29 03:13:24 +00:00
fvdl
902ae34ae6 When converting from relsecs to chs, if the value exceeds the maxmimum
that can be specified with CHS, truncate it to the maximum values that
the BIOS provided, not 1023*255*63. Some BIOSs get awfully cranky when
you do that.
2000-05-27 18:41:36 +00:00
shin
7b961f3147 fix disk usage. 2000-05-23 12:38:39 +00:00
wiz
c4c0300d19 We don't need to fsck -f filesystems, plain fsck is good enough.
Define DEBUG_SETS to fsck -f by default instead.
2000-05-20 00:45:45 +00:00
matt
594a6a1750 Link sysinst -static too. 2000-05-18 01:10:58 +00:00
matt
9b64288b04 Part II. Link everything -static since that's what want for crunchgen
later on.
2000-05-18 01:10:22 +00:00
matt
e123fd0f5a Compile things with -Os. I wonder if compiling -Mno-pic for mips and vax
would shrink them even more?
2000-05-18 00:43:05 +00:00
thorpej
03f41d304a Add x_dhclient. 2000-05-12 20:54:16 +00:00
thorpej
5a58ea4ad2 Support for building a small(er) DHCP client, one day suitable for
installation media.  From Erik Berls <cyber@netbsd.org>, with some
slight frobbing by me.
2000-05-12 20:53:21 +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
6458701315 fix typo 2000-05-11 02:23:53 +00:00
hubertf
ec974f2650 Seperate "Shall we continue?" questions optically, to make them more
obvious.
2000-05-09 00:25:27 +00:00
itojun
1f8a9e6165 supply IPv6-ready route(8) for i386 and hpcmips
(those who has IPv6-ready sysinst already)
2000-05-04 03:30:57 +00:00
itojun
3b30be92ba make -DINET6 conditional with MACHINE_ARCH.
checked after a comment from "Simon J. Gerraty" <sjg@quick.com.au>
2000-05-04 03:27:09 +00:00
thorpej
d972fb140a Don't access curses internals, use getmaxy() instead. 2000-04-14 21:46:11 +00:00
christos
f0653e6271 Oops, forgot to include test here. 2000-04-11 12:45:18 +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
thorpej
06f397e94e Allow for building with an alternate default FTP server and alternate
default FTP directory, based on mk.conf variables SYSINST_FTP_HOST
and SYSINST_FTP_DIR.
2000-03-24 21:56:04 +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
he
5b26c39aa4 Remove local declaration of errno, rely on <errno.h> instead. 2000-01-24 10:40:56 +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
shin
823e065f6f fix format string in message. ('%' -> '%d') 2000-01-21 11:23:01 +00:00
mycroft
4fe7833802 Fix display problems:
* Use endwin() strategically so that the child does not corrupt the display
  when suspending or exiting.
* Handle backspace.
* Only do one refresh per buffer-full.
* Eliminate redundant code.
2000-01-19 09:44:01 +00:00
mycroft
03d845d8cf Fix display glitch when suspending and resuming. 2000-01-19 08:46:26 +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
bouyer
810869b939 Translate recently-added messages. 2000-01-15 15:55:20 +00:00
pk
e42055a6de Deal with name space issues after libc/net updates. 2000-01-14 13:52:13 +00:00
mycroft
c82f5a6009 In command execution displays, only draw a single line between the status
display and the output window, not a whole box.  This looks better, and it
works much better on terminals.
2000-01-13 18:52:21 +00:00
jeremy
c85fda06d1 Added error checking to log and script file creation functions.
Prevents sysinst from coredumping should the root filesystem be accidentally
mounted read-only.
2000-01-07 02:02:05 +00:00
itojun
524c5db85b fix non-inet6 compilation 2000-01-05 01:50:45 +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
itojun
a177ed9712 ping6 without IPsec. 2000-01-04 08:14:12 +00:00
garbled
d2fb9c48f8 Change MENUC= and MSGC= to ?= to aid in cross-compiling sysinst. 1999-12-27 20:31:32 +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
minoura
c72e7e843e Remove -msoft-float for m68k. x_ping does use floating point. 1999-11-13 14:18:44 +00:00
he
05bfcdfbf4 No longer any point in inserting "lookup files bind"
in resolv.conf; after nsswitch implementation in libc
this will be inored here.
1999-10-29 19:45:20 +00:00
dan
3b9487d9aa Fix up conflicting decl for putchr() 1999-10-19 23:09:45 +00:00
pk
ed198ecbf3 Change `putchr' prototype to make it acceptable to tputs(). 1999-10-18 20:28:32 +00:00
pk
ea72edb188 Add x_ping. 1999-10-18 20:20:03 +00:00
pk
c21bc25a04 Build ping without IPSEC. 1999-10-18 20:19:39 +00:00
dan
800ff533b4 Combine the Makefile.inc and Makefile, and specify the $(HACKOBJS)
directly to work around the fact that $(OBJS) seems to produce a double list of
each .o for some reason.

XXX Why does $(OBJS) list doubles?
1999-09-26 04:49:37 +00:00
christos
f6b5fa06ab Fix floppy build in the presense of weak symbols. 1999-09-19 19:51:11 +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
mycroft
6cbab8a473 Add gif' and faith' to the ignored pseudo-devices. 1999-09-05 16:33:03 +00:00
soren
017785443d Synchronize partition types with <sys/disklabel_mbr.h>.
Closes PR install/8301 by Jonathan Cline.
1999-09-04 19:49:23 +00:00
jdc
de76a33270 Support ports which don't have 8 partitions/disk. 1999-08-21 19:19:23 +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
fvdl
47d416e15d When converting the end of a partition to CHS, use start + size - 1, not
start + size.
1999-07-30 20:46:10 +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
abs
b148673ade If the first wait4() in launch_subwin() caught the child exiting, the loop
would never exit. This resulted in somewhat suboptimal infinite install times.
1999-07-14 16:30:58 +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
392fa3123d one 'domain' -> 'DNS domain' that slipped through the cracks 1999-07-06 06:10:53 +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
bouyer
8d82c2165f Translate. 1999-07-05 12:08:09 +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
5ed98e7513 note that msg_printf_add() is going to go away 1999-07-04 22:33:54 +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
c624190287 convert run_prog's error message from being a "const char *" to a msg.
XXX Only the callers that actually pass strings were fixed, the rest were
XXX left passing 'NULL'.  Eventually they should be cleaned up to pass
XXX MSG_NONE, but I didn't want to do that yet because somebody else
XXX (jonathan) is hacking on the run_prog callers and I didn't want to
XXX cause him a Lot of conflicts.  at least right now, MSG_NONE and NULL
XXX are as equivalent as they need to be.
1999-07-04 21:39:33 +00:00
cgd
1904092f06 message const poisoning, and conversion from integers to an opaque
message type.
1999-07-04 21:32:48 +00:00
cgd
0f1bc6e9b6 fix slight finger-brain disconnect 1999-07-04 10:45:37 +00:00
cgd
736fd6a4cb replace msg_noecho+msg_prompt+msg_echo with msg_prompt_noecho 1999-07-04 10:29:29 +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
6b37daf0b6 From Alan Barrett <apb@iafrica.com>, in response to my response to his PR:
>Removing leading slashes in the url_encode() function is bad, because
>they might be part of a password, but somebody else had apparently made
>url_encode() do that.  Here's a patch that stops url_encode() from
>removing leading slashes, changes the encode_leading_slash code to
>fit in with that policy, adds some comments that should dissuade folk
>from removing leading slashes in the future, and fixes a bug where the
>encode_leading_slash code was not decrementing len.
1999-07-03 09:02:23 +00:00
fvdl
440bb56d81 Don't use .PATH here, it won't work because of crunchgen. XXX 1999-06-30 22:21:57 +00:00
mrg
e7e33e2136 miniroot changes:
install.sub:
	- fix interface grovelling, ifmedia support, allow ifmedia and link
	  to have a "none" (-> "") answer (which lets you give nothing when
	  a default answer is given)
	- allow installing more than one set at a time, including "all" as
	  a synonym for all remaining sets
	- mount -o async when extracting sets
    makeconf.awk:
	- put default "libs" section at the end rather than the start, so
	  you can put other "libs" in before this list
	- minor cleanup

    mtree.conf:
	- create /kern

    sparc install.md:
	- MDSETS are now "kern xbase xcomp xcontrib xfont xserver"
	- use /kern & kernfs (replaces dmesg)
	- replace grep & cut pipe lines with sed
	- replace grep hackery with sed hackery
	- grep and cut are no longer required!  yay!
	- deal with no /usr/bin/vi -- call disklabel -i
	- in md_copy_kern() link the netbsd.GENERIC we got from the kern set,
	  rather than the miniroot kernel
    sparc miniroot list:
	- no more dmesg, cut or grep

sparc ramdisk changes:
    Makefile:
	- `ramdiskbin.conf' is now generated by makeconf.awk
	- don't use libhack's opendir, it breaks
    dot.profile:
	- don't assume terminal is `sun'
	- set EDITOR=ed
	-
    list:
	- instbin -> ramdiskbin to make `makeconf.awk' work
	- CRUNCHSPECIAL those special dirs
	- add our LIBS as necessary

libhack changes:
	- if NOLIBHACKOPENDIR is set, don't build opendir.o
1999-06-27 12:55:58 +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
d87d2f2837 use -DNO_EDITCOMPLETE -DNO_ABOUT rather than -DSMALL. The latter excludes
the progress meter code, which isn't particularly large and which is _very_
useful when downloading distribution sets from a not-local network.
1999-06-25 01:07:56 +00:00
cgd
026efaa662 replace "/sbin/ping -c 2 %s" with "/sbin/ping -v -c 5 -w 5 -o -n %s".
Shouldn't bother doing DNS lookups or wait a really long time,
should display verbose output and quit after the host has been
successfully pinged even once.  count bumped up to 5 to give boards
which take a while to do media autoselection time to do their thing.
1999-06-24 00:16:49 +00:00
cgd
834b871ea5 don't make /etc/hosts's contents a message. there's no point and it
makes some things harder, for instance... Deal correctly with the case
where the user-supplied hostname is already fully qualified with the
domain name they supplied.  Addresses PR#6955.
1999-06-23 22:55:14 +00:00
cgd
491d56190d address the problems described in PR#7833 and its followups: ftp/nfs
installation would try to continue even if no networking interfaces found,
and, and, when that was fixed, instead of dropping back to the
pick-distribution-medium menu they'd drop all the way back to the opening
menu.
1999-06-22 18:47:07 +00:00
cgd
092b1acdb4 now that msg_window returns a value, check it 1999-06-22 15:04:15 +00:00
bouyer
ab68dc3e40 Translate into french the new stuffs added by cgd. 1999-06-22 12:45:26 +00:00
cgd
3528b5e0cf * 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.
1999-06-22 06:57:00 +00:00
cgd
f9227dd6ef kill the "If you see error messages above..." and related chunks from
the disksetupdone message.  If there were errors, sysinst would (or
should) have bailed out.
1999-06-22 04:29:54 +00:00
cgd
72928b1093 nuke ask_ynquestion from orbit. not only was it bogus w.r.t. what is
allowed in C (see PR 6431), but it's also bogus w.r.t. sysinst's message
display style, etc.  XXX the French msg file needs translation.
1999-06-22 02:43:09 +00:00
cgd
1efdb57757 explicitly mention that the domain name requested is the DNS domain name 1999-06-22 02:21:58 +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
afa3578c2f provide a way to ignore tty-generated signals (INTR and QUIT) and/or
forward them on to subprocesses.  nice when running a subprocess in
a display window to allow the user to kill the subprocess w/o nuking
sysinst itself.  add handling for QUIT, which gets handled the same
as intr.  add handling for HUP which just cleans up.  More signals
should be handled.
1999-06-22 00:43:57 +00:00
cgd
f337a5c974 actually use all of the action window for command output 1999-06-21 02:55:27 +00:00
cgd
7f0f3a202c simplify the code to display cmd output in subwindows slightly. while
at it, remove the gratuitous inefficiencies.
1999-06-21 02:47:41 +00:00
danw
a70101fd7b const poison login 1999-06-21 02:32:20 +00:00
cgd
9c8517c573 handle CRs properly when running cmds w/output to subwin 1999-06-21 02:31:17 +00:00
cgd
40587021a6 dependencies on BSDSRCDIR should be _removed_, not introduced. Use
paths relative to ${.CURDIR} instead.  Using BSDSRCDIR here means that
it's impossible to compile these programs out of the source tree they're
a part of, unless that sort tree happens to be the one at BSDSRCDIR.
1999-06-21 01:19:36 +00:00
cgd
f4ce9a35ea nuke extra spaces around logging menu title, allow the menu to be
automatically horizontally centered.
1999-06-20 20:26:42 +00:00
cgd
45a8fa11cd reimplement most of get_ifconfig_info() so that it only ignores network
pseudo-devices.  This is done by explicitly listing the driver names
(e.g. "lo") to ignore in an array in this file.  Right now, "eon", "gre",
"ipip", "lo", "nsip", "ppp", "sl", "strip", and "tun" are ignored.
1999-06-20 07:55:00 +00:00
cgd
cdd16f2bf9 clues for the clueless and convenient common-bogon grep list. 1999-06-20 06:53: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
eb1ee6e879 message and menu files now named *.en rather than *.eng (via repository
move).  Fixes PR#7277.
1999-06-20 05:55:51 +00:00
cgd
a28535f4c0 Moved to ./msg.mi.en,v 1999-06-20 05:48:49 +00:00
cgd
f3d8660f1f Moved from ./msg.mi.eng,v 1999-06-20 05:48:48 +00:00
cgd
5bc1f13c47 Moved to ./menus.mi.en,v 1999-06-20 05:48:45 +00:00
cgd
303077ef06 Moved from ./menus.mi.eng,v 1999-06-20 05:48:44 +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
garbled
128b6749ab Check the return code of subwin and newwin for NULL. 1999-06-20 04:17:57 +00:00
cgd
56de4e1945 slightly better title for the utility menu 1999-06-20 02:15:22 +00:00
cgd
01d9e08651 instead of defining a specific menu item for exit, use an 'exit' spec
with a custom string.  This way the top-level exit is 'x', like the rest.
1999-06-20 02:09:20 +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
fb8da4672e initialize the menu systerm before setting up the message window. Then
use stdscr's maxx and maxy to set up the message window rather than hard
coding 78 and 22, respectively.  The latter, combined with large messages
and a relatively small screen (and perhaps badly-placed menus), would seem
to cause the SEGVs reported in PR#7806.  (For certain window sizes, the
menu system would reject the menus as too small, but for others sysinst
would just crash.)
1999-06-19 06:52:22 +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
ee07f989ae Clean up the FTP source selection menu some. When changing all but
password, offer defaults.  When displaying the current values, note
that a password has been set and is hidden, rather than displaying
the number of characters entered for the password.  (Thanks to wrstuden
for the translation of "hidden"...)
1999-06-19 01:10:59 +00:00
cgd
5e4db63c27 * when encoding an FTP url, if the path starts with a / put a %2F at the
start of the URL so that the request will start from / (rather than
  relative to the login directory; makes things work better for
  non-anonymous FTP).  To make it clearer what's going on, make the
  default path (used to get distribution bits) relative.  (according
  to the 1.4 LAST_MINUTE file, this is OK.)
* Also, %-encode passwords in FTP URLs (doesn't help actual security, but
  makes it slightly harder to figure out a password by reading over
  somebody's shoulder).
1999-06-18 23:26:40 +00:00
cgd
e26af403c2 get rid of some annoying (bad-looking) and unnecessary spaces in the
network name/address/etc. prompts.
1999-06-18 23:14:01 +00:00
cgd
bf0ffa5211 * hitting control-c (causing SIGINTR) would cause the SIGINTR handler to
be called.  it'd cleanup() then exit().  however, cleanup() is scheduled
  to run at exit via atexit().  This means that it gets run twice, and
  this causes confusion for things like endwin().  The end result is
  that rather than actually exiting and printing the "sysinst terminated"
  message, after one control-c it looks like it's still sitting at the
  last screen you were viewing even though it's actually at a shell prompt.
  squelch the cleanup() in the SIGINTR handler to avoid this problem.
* while here, nuke the annoying space before the "sysinst terminated."
  message.  it looks bad, and serves no purpose.
1999-06-18 08:54:28 +00:00
cgd
c42289089f nuke md_copy_filesystem()'s contents. it now just returns 0. 1999-06-18 05:08:57 +00:00
gwr
74d4236abd Warning fixes from kurt.schreiner 1999-05-27 05:41:15 +00:00
gwr
b6019bb35a fix warning allegedly reported on i386 1999-05-23 22:08:17 +00:00
veego
3a53c9e30e Fxi the last commit:
move the include of bsd.prog.mk in front of the .PATH.
1999-05-23 10:25:43 +00:00
tron
2f3417d997 Fix listfiles to handle object directories. Patches supplied by
Izumi Tsutsui in PR misc/7628.
1999-05-23 07:31:19 +00:00
gwr
14ec5cd1da Things in distrib/utils need to know BSDSRCDIR anway,
so we might as well use it.  Lots simpler.
1999-05-19 04:17:49 +00:00
gwr
bb4c388e4e New files... 1999-05-19 03:58:13 +00:00
gwr
a68da00556 Prune out NLS stuff. 1999-05-19 03:55:33 +00:00
gwr
0538cba737 Stubbed-out utmp file functions. 1999-05-19 03:54:40 +00:00
gwr
573562df6c Slimmed-down localeconv 1999-05-19 03:53:58 +00:00
gwr
1cf8e1e36b Prune out references to qsort in opendir unionfs code.
(Never needed on a ramdisk root.)
1999-05-19 03:53:03 +00:00
bouyer
145e79f160 Sync with the english version. 1999-05-18 18:07:25 +00:00
ross
219ec208d3 WARNS
include prototype for memset(3)
1999-05-13 12:55:37 +00:00
ross
f4b387af13 Fix unclosed .Bl.
Adjust tag width.
1999-05-11 16:39:03 +00:00
wrstuden
f2a11156e3 We don't need to give explicit rules for .c.o conversion, the default
ones work fine, and are correct for cross-compiling.
1999-05-06 18:48:23 +00:00
simonb
a94b4b4c49 Add setting RTC offset for pc's. 1999-05-05 01:21:37 +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
drochner
5c7be261d4 disable the "install" target in a way which works if other "install"
rules are present
1999-04-28 09:18:13 +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
minoura
86417913a0 Which is the tmp_dir (the directory which contain CHANGES or that of
base.tgz) was a FAQ.  Note more clearly.
1999-04-18 14:34:52 +00:00
simonb
e491f2661b Don't frob the interals of a WINDOW*, use the getmaxx() and getmaxy()
macros.
1999-04-18 04:09:27 +00:00
simonb
c6f8d15017 md_post_newfs() now returns int after the latest round of changes. 1999-04-16 15:42:32 +00:00
simonb
7e09f8d2f8 Descend into sysinst directory if sysinst/arch/${MACHINE} exists. 1999-04-16 10:10:24 +00:00
ender
3a4b99f66e Make this compile again. 1999-04-16 08:29:15 +00:00
bouyer
88c3275af3 Add wclear()/wupdate() before MSG_makedev, bits of the previous screen
were left.
1999-04-15 12:25:54 +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
de3024ade3 Correct some bugs in mbr handling, which could lead to invalid partition
tables being written on disk:
- when counting non-BSD partitions, use part[i], not part[0]
- when using full disk for NetBSD, initialise all the fileds of the
  mbr entries (especially flags)
- When converting to on-disk format, if start and size = 0, initialise
  c/h/s to 0 for both start and end. convert_mbr_chs() would make an entry
  0/0/0, 0/0/1 which is not bogus, but not what we really want either.
1999-04-14 16:00:42 +00:00
bouyer
0e3751fa5f If there is no files to delete, return 1 (success), not 0. 1999-04-14 12:47:27 +00:00
bouyer
8d7cb08335 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.
1999-04-13 20:17:47 +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
simonb
1c15941926 Remove any leading '/'s in the pathname component of the FTP URL.
When the complete URL is constructed, and '/' is inserted between
the hostname and the pathname components.
1999-04-07 13:09:55 +00:00
simonb
f04624dfbf Remove single quotes from the ftp URL and remove the comment about
"protecting the URL from the shell."  run_prog() now breaks up it's
argument and calls execvp() directly, so there's no shell to be wary
off...
1999-04-07 05:18:49 +00:00
tsubai
b8f166d4da Fix menu item number. 1999-04-06 09:31:40 +00:00
simonb
e8f5904d9e Move prototype for disp_cur_part() from defs.h to mbr.h. 1999-04-05 06:59:36 +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
2eef6a3ee1 Make sure to get the magic MBR number right (i.e. use u_int16_t). 1999-04-03 22:56:22 +00:00
fvdl
793f57a4e6 Adapt setting of active partition to newer MBR handling. 1999-04-01 11:33:02 +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
kleink
270c5e6806 Typo. 1999-03-28 17:12:12 +00:00
minoura
632ad8cde6 Use pax(1) instead of tar(1).
MD parts already have this change.  /usr/bin/tar can be removed from
the miniroot.
1999-03-26 09:24:27 +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
garbled
d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
ross
ac722a849a Bug fix: deal with race-like (select(2) vs wait4(2)) error flow bogon. 1999-03-22 09:02:47 +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
he
2efafeabaa Add note about /usr/include/machine and e.g. /usr/include/i386 on upgrade. 1999-03-19 15:44:59 +00:00
perry
0547e6d3b2 URLs can't safely contain certain characters unless they are %XX hex
encoded. This means certain passwords, usernames, etc., will not work
with "ftp ftp://...."

This code, submitted by Alan Barrett <apb@iafrica.com>, fixes this by
hex encoding unsafe strings in a clean fashion. This should close a
couple of outstanding PRs. Thanks Alan!
1999-03-19 14:49:07 +00:00
simonb
826dd9708b Add "Set root's shell and password." 1999-03-17 12:42:42 +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
ender
5a333883e0 Fix a typo. 1999-03-13 23:17:04 +00:00
sommerfe
93c6dea365 Make it more clear where this came from. 1999-03-13 19:11:54 +00:00
sommerfe
a8ff351bae Warnsify.
Add reduced version of getcap routines, so sysinst need not drag in
the database goop via libtermcap.
1999-03-13 19:08:43 +00:00
marc
a08745a0e8 if exec fails, perror() and _exit(). exit() is no good, because if
the child runs the atexit cleanup() function, the filesystems get
unmounted and things lose.
1999-03-11 16:48:27 +00:00
he
1a36836b8e If TIOCGWINSIZE returns 0 x 0, default to 80 x 24 instead of crashing. 1999-03-09 19:30:00 +00:00