Commit Graph

605 Commits

Author SHA1 Message Date
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