Commit Graph

727 Commits

Author SHA1 Message Date
he
602160f281 Add messages "mbrpart_start_special" and "mbrpart_size_special" to
those ports which are using the now-modified MI mbr.c file which
was recently modified to use those messages.  French translation
courtesy of Manuel Bouyer, Polish copied from the i386 port.
2003-05-14 22:11:42 +00:00
dsl
e3d5a4eaaf Allow for menu 'opt_name' being const char *. 2003-05-09 12:45:01 +00:00
lukem
85a40ebf71 #if 0 out cleanup_dist() (the obsolete file handling function)
since we don't ship the obsolete sets on the install media anymore.
Instead, we'll rely upon postinstall to do this for us.
2003-05-09 12:34:42 +00:00
dsl
5fb67a188b A couple of ";" escaped.... 2003-05-07 20:49:22 +00:00
dsl
3c476fffb6 Pull some code fragments from machine and language dependant files into mbr.c
Resynchronise amd64 with i386
2003-05-07 19:02:52 +00:00
dsl
40414b8e25 Typo in previous commit 2003-05-07 11:42:03 +00:00
dsl
164b895890 KNF 2003-05-07 11:36:10 +00:00
dsl
d5c9f83022 Use C structure mbr_sector_t instead of char[] for 'mbr'.
(I hope the edits for the ports I can't build are right!)
i386/amd64 pick up a minor change to the md_read_bootcode which
might preseve the bootselect config.
2003-05-07 10:20:18 +00:00
dsl
3e8fcf58f8 Remove unused definitions of bootsel stuff 2003-05-07 08:45:43 +00:00
dsl
0e07cf9a65 Delete unused menus (the i386 bootselect ones) 2003-05-07 08:40:41 +00:00
shin
acabf4765c struct mbr_bootsel et al were moved to sys/disklabel_mbr.h, adapt. 2003-05-07 03:34:23 +00:00
shin
c1bb0fc7a0 struct mbr_bootsel et al were moved to sys/disklabel_mbr.h, adapt. 2003-05-07 02:13:32 +00:00
itojun
6f4441e278 change address for IPv6 DNS servers. many of them are obsolete... 2003-05-06 05:35:09 +00:00
fvdl
21670652bf struct mbr_bootsel et al were moved to sys/disklabel_mbr.h, adapt. 2003-05-03 17:04:09 +00:00
fvdl
043f21d9ea x86_64 -> amd64 2003-04-26 19:14:17 +00:00
fvdl
0945a6df17 x86_64 -> amd64 2003-04-26 19:02:50 +00:00
fvdl
046ec6c887 FIx kernel set names. Add 'toolchain' set for the time being. 2003-04-17 19:30:19 +00:00
thorpej
6a324a98cb * Add ADI_BRH to the list of kernel sets.
* Add "ld" to the list of acceptable disk names.
2003-04-10 17:05:25 +00:00
jmmv
2b250668c1 When installing from floppy disks, let the user say which is the last one
on a set, instead of hardcoding the number of parts in sysinst (which gets
out of sync easily).  The fdlast field of the distinfo struct has been
removed.

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

Closes PR install/5050.  Ok'ed by fvdl.
2003-04-06 16:12:36 +00:00
fvdl
fbea38c96e Revert previous; it was bogusly based on a misplaced msg.def file. 2003-03-18 20:03:30 +00:00
fvdl
a51c2397e0 Don't bother looking at the superblock directly, just run fsck (and
not fsck_lfs or fsck_ffs), it'll figure it out. Also, upgrading from
the old inode format is only needed for 0.9 or older. Noone is going
to do that.
2003-03-18 01:13:23 +00:00
fvdl
099d07f374 Apparently, due to a recent change in crunchgen, msg.def needs ${.CURDIR}
prepended in the explicit rule that creates target files from it.
2003-03-18 00:55:09 +00:00
lukem
4f6381b784 all:
Use /var/db/obsolete instead of /etc/obsolete

etc/Makefile:
	Create separate target "install-obsolete-files" to populate
	/var/db/obsolete, instead of using "install-etc-files".

Makefile:
	Add do-obsolete target, to run "cd etc && make install-obsolete-files",
	and add this to BUILDTARGETS.
	This moves the "obsolete files" creation from "distribution" to "build".


Per discussion with Andrew Brown.
2003-02-22 03:20:45 +00:00
lukem
ab020dd57c fix previous; target_prefix() returns const char *, not char *. 2003-02-20 22:21:25 +00:00
lukem
87d530f065 cleanup_dist():
- filenames in obsolete sets start with "./" not "/" (i changed that a
  while ago, and forgot to update this)
- only call target_prefix() once, not for each filename parsed...
- look for obsolete lists in /etc/obsolete/%s instead of /dist/%s_obsolete
2003-02-20 12:02:56 +00:00
grant
d1d5ade4cf remove -O arg in pax->tar change.
also noted by MOCHIZUKI Tomomitsu.
2003-02-20 11:03:34 +00:00
grant
5bb479a60f add missing '-' (stdin) to progress/tar command line.
noted by MOCHIZUKI Tomomitsu in PR install/20442.
2003-02-20 11:00:35 +00:00
mrg
6f05c73b55 fix a couple of sparc sysinst bugs:
- md_set_no_x() was turning off the "misc" and "text" sets and
	not turning off the "xcomp" and "xmisc" sets.

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

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

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

missing:
	- a way to force that one and only one of the 3 kernel sets are
	selected.  at least the default install works now.
2003-02-19 02:09:46 +00:00
grant
e245be8651 we really should install the GENERIC kernel by default.
fixes PR install/18502 from Jay R. Fink.
2003-02-17 16:31:05 +00:00
grant
d2af5da2ad use pas-as-tar to extract sets rather than pax-as-pax, and pass
-e arg to abort after first error.

This means the extract process doesn't spew seemingly-endless
"No space left on device" if the destination partition fills.
2003-02-14 00:17:56 +00:00
bouyer
a82a445995 Use the real size of the disk, not cyl*head*sect.
Handle the "use existing" option for partitions (but keep d as the
boot partition).
While I'm there use get_real_geom() instead of custom code to get the
existing disklabel.
2003-02-12 11:10:08 +00:00
jmc
c3afc4ab88 Put a retry loop around the cd mount to try and handle slow cd spinup's that
might return EIO on some systems. Fixes PR#20165
2003-02-11 11:30:54 +00:00
jmc
4aa8ba861b After dhcp'ing rerun the interface get routine to pick up any new values
like IP/netmask/etc. Fixes PR#20133
2003-02-11 11:29:35 +00:00
shin
e6e2ffad7b fix typo in comment. 2003-02-10 02:24:27 +00:00
martin
246aa3ebe9 Avoid a spurious warning (with random errno) if read(2) returns 0
(i.e. at EOF).

This should close PR install/20054.
2003-02-09 16:31:05 +00:00
shin
d1f3739431 fix typo. 2003-02-08 09:53:08 +00:00
jhawk
5541e55b38 Allow the user to select a progress bar for file extraction, rather
than simply silence or maximum verbosity. Leverage progress(1).
2003-01-22 05:59:07 +00:00
simonb
276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
thorpej
8f4d94ed22 Allow the user to select the console speed of the boot blocks. 2003-01-15 00:09:30 +00:00
christos
cc9b9c6553 hack to have only one copy of fstypenames[] 2003-01-12 21:49:50 +00:00
christos
d9edafd3d3 check for strdup returning null 2003-01-11 22:32:43 +00:00
christos
440c3bcc16 check for malloc returning null 2003-01-11 22:32:25 +00:00
christos
774782c3bc Make everything compile again. All platforms compile on i386 now. 2003-01-11 19:44:04 +00:00
christos
d5c5392912 make compile on !playstation 2003-01-11 19:37:48 +00:00
christos
848b0d8582 use the <sys/bootblock.h> names. 2003-01-11 19:31:52 +00:00
christos
83b0b99b3b use definitions from <sys/bootblock.h>; don't require <machine/disklabel.h>
mac68k machine/disklabel.h contains duplicate definitions that also exist
in <sys/disklabel.h> and <sys/bootblock.h> and should be removed.
2003-01-11 19:28:04 +00:00
christos
405768deca remove i386'isms; make link again. 2003-01-11 19:06:54 +00:00
christos
2d7e213ded pass lint[pass1] 2003-01-10 20:00:27 +00:00
jmmv
a9a3a6a120 Remember the administrator to look at the afterboot(8) manpage after a
successful installation, upgrade or extraction of sets.
Reviewed by wiz (and tech-install).
2003-01-04 10:07:45 +00:00
jdolecek
b42b75087b make the description text for special label offset a bit more explicit
adresses install/13026 by John P. Refling
2002-12-23 10:29:57 +00:00
lukem
1903b2f616 Add '-O' to pax command line, so that various error conditions don't try
and prompt the user for a new archive.

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

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

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

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

This change saves a fair bit of space on various install images
(including i386 ramdisk-{ps2,small,tiny}) that didn't have INET6 in
the kernel but were unconditionally getting INET6 support in their tools.
2002-10-17 02:05:35 +00:00
itojun
bfe85e26f6 remove sh1.iijlab.net's old address (what is the best way to maintain
the list of publically-usable DNS server addresses?)
2002-10-16 08:04:26 +00:00
augustss
b0eef0bfaa Use unsigned variable for memory size, so > 2M memory isn't negative. 2002-10-09 13:28:48 +00:00
grant
a94624a921 during timezone selection, only update the clock once per minute. once
per second is painful and annoying over a serial line.
2002-10-05 02:41:54 +00:00
grant
b81826593e s/unused/inutilis'e/
from Stoned Elipot.
2002-09-27 15:21:52 +00:00
grant
6f98f8dffe update French translation, add "don't change" option to mbr partition
type selection.

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

Base for fix provided by Tyler Retzlaff. Tested by Tyler, Grant Beattie & me.
2002-09-04 14:22:20 +00:00
rnestor
4ca44777d6 Correct the printout of the partition start and size values. 2002-09-03 00:35:53 +00:00
grant
da7c095365 remove setting root's shell, as this was addressed in install/17676. 2002-08-27 00:22:53 +00:00
mrg
d4c1463d23 if the type of either partition is 0 ("unused"), then these partitions
do not overlap.  from Tyler Retzlaff <rtr@wasabisystems.com> and fixes
PR#12386.
2002-08-13 03:58:56 +00:00
grant
6b0d856a30 use current values for start/size/bsize/fsize as defaults when editing
disklabel partitions.
2002-08-12 02:45:17 +00:00
grant
2df65a0a6e make mbr and disklabel editor consistently use Start, End, Size in
that order.

"offset" -> "start" where applicable.
2002-08-12 02:22:52 +00:00
gmcgarry
26945b2c8b Bootblock is called uboot.lif. Problem reported by
Sageev T. George <sageev@bmsrs.usc.edu>.
2002-08-04 01:24:57 +00:00
grant
c095f9f3cc make 'use existing partitions' work on i386.
patch provided by Tyler Retzlaff, fixes install/17747.
2002-08-02 10:28:17 +00:00
mrg
81cda3082a fix PR#11945 Tyler Retzlaff <rtr@wasabisystems.com>:
>The reason this occurs is because of left over scum in unused partition
>table slots for host system parts.  This should clean it up.
2002-08-02 05:38:18 +00:00
grant
0b81a2c68e set root partition default bsize and fsize. 2002-08-02 05:11:29 +00:00
grant
f4e0ef0aad allow unsetting of mountpoints in disklabel editor.
partially addresses install/17801.
2002-08-02 04:08:47 +00:00
grant
c8c81b4a57 nullify ftp passwd whenever user is changed, not only when user is
changed to 'ftp'.
2002-07-31 12:44:14 +00:00
grant
2a31902244 nullify ftp password when changing user to 'ftp', from Thomas Klausner
in install/11436.
2002-07-29 03:24:47 +00:00
grant
f9419717d2 add setting of root's shell, from Julio Merino in install/17676 with
minor changes by me.
2002-07-29 03:05:16 +00:00
grant
56ad586e08 filesystem -> file system
(www.m-w.com)
2002-07-29 02:51:07 +00:00
grant
39427aa237 whitespace and comment cleanup. 2002-07-29 01:30:25 +00:00
grant
b4dfc38d21 add blank lines to editpart, ala editparttable.
this stops the table of partitions jumping about while using the mbr
editor.
2002-07-28 08:58:59 +00:00
grant
32c14ac1fc refresh screen before processing menus. 2002-07-27 10:02:50 +00:00
grant
8136155741 move password cipher menu down to avoid overwriting text. 2002-07-27 10:02:05 +00:00
wiz
5db23d2c5d enouth -> enough. 2002-07-26 01:00:39 +00:00
grant
9676dd8001 typo in comment. 2002-07-26 00:42:04 +00:00
grant
b0f2d974df allow partitions i-p to be modified, from Masanori Kanaoka in
port-i386/17689, with minor changes by me.
2002-07-25 15:19:17 +00:00
grant
e5d316be94 allow partitions i-p to be modified, from Masanori Kanaoka in
port-i386/17689, with minor changes by me.

add_rc_conf() needs a trailing \n.
2002-07-25 14:31:10 +00:00
rafal
04d70c3689 Fix PR port-sgimips/17567: sysinst wasn't installing/upgrading bootblocks on
the new disk.  This requires my previous changes to sgivol to get a non-
interactive mode.  While here, change the way sysinst invoked sgivol (it
called system(), now it uses run_prog()) so we don't mess up the logging
and scripting contexts.
2002-07-18 16:23:36 +00:00
scottr
9f0a09b27b Automatically select the appropriate kernel set based on the
kernel used to do the installation.
2002-07-18 05:35:00 +00:00
rafal
21b586407d Since the O2 kernel doesn't work, don't bother giving users a choice to
install it.  Discussed with Soren and Scott G. Taylor (who originally
suggested we do this).
2002-07-15 04:51:41 +00:00
rafal
4d8aea6332 Fix PR port-sgimips/17566: Install the INDY kernel set by default, since we
need one of the kernel sets installed (and since O2 support is currently not
working, it's easy to figure out which we should install 8-).
2002-07-12 14:22:16 +00:00
wiz
148bbc0647 Typos. 2002-07-09 14:49:24 +00:00
scottr
fc9da5f33b If a valid file system type is found for a particular partition but no
mount point was specified, make sure to add only a commented-out entry for
that partition when building fstab. This prevents sysinst from generating
an otherwise invalid fstab. This problem was originally reported by
Frederick Bruckman and fixed by Bob Nestor.
2002-06-30 04:02:47 +00:00
scottr
23b6b38874 Correct fsck_num() implementation; return the fs_passno value as defined
in fstab(5). Noticed by Frederick Bruckman.
2002-06-30 03:57:46 +00:00
scottr
2a946905e4 Back out last; inadvertantly committed. This will be resurrected
in the future, in all likelihood, but it wasn't ready yet.
2002-06-29 20:16:41 +00:00
scottr
7de06b16d5 If a valid file system type is found for a particular partition but no
mount point was specified, make sure to add only a commented-out entry for
that partition when building fstab. This prevents sysinst from generating
an otherwise invalid fstab. Bob Nestor found this while working on sysinst
for mac68k, and as such there is no corresponding PR.
2002-06-29 20:12:57 +00:00
scottr
0aafec883d A malloc() return value wasn't checked properly in cleanup_dist() while
reading the file list. Bob Nestor found this by inspection while working on
sysinst for NetBSD/mac68k, and as such there is no corresponding PR.
2002-06-29 20:04:56 +00:00