Commit Graph

1119 Commits

Author SHA1 Message Date
dsl 070457d605 Use installboot (not disklabel) to make disk bootable (untested). 2003-09-27 10:44:03 +00:00
dsl c268192676 make main menu sit below initial text. 2003-09-27 10:42:16 +00:00
dsl 3322ced37b Make partition menu sit just below header (regardless of header size).
Change flag for bootmenu default from 'b' to 'd'.
2003-09-27 10:39:35 +00:00
dsl df047cb827 Just convert \r\n to \n\r when relaying program output.
Ensure we never write an undefined error message.
Remove support for RUN_SYSTEM - it isn't used and there are too many paths
through this code....
2003-09-27 10:38:05 +00:00
dsl a6c235d09a Include '+' in default for partition size.
If partition size input as '+', treat as 1 cylinder and '+'.
Set default sized /usr if all space can't be given to root.
2003-09-27 10:16:33 +00:00
takemura 8260617c99 Fixed alignment of call by reference arguments. This change solves unalignement
access and segmentation fault problem on MIPS architecture.
2003-09-21 02:30:18 +00:00
takemura 191a44adea Remove unnecessary mbr_buf.S. Type of global variable 'mbr' was changed and
allocated in main.c since 7/2003. This change resolves some unaligned access
problems.
2003-09-21 02:23:55 +00:00
dsl d421676fae Put fs type back into bintall command line. 2003-09-20 20:55:34 +00:00
dsl e1f4ec62b8 Fix a few arch/md.c to use targetroot_mnt instead of "/mnt". 2003-09-20 15:40:41 +00:00
martin 604a0dda0c No need to special-case sparc64 any longer. 2003-09-19 16:29:21 +00:00
fvdl 42dd9f2673 Define SET_KERNEL_GENERIC. 2003-08-31 16:53:03 +00:00
fvdl 9aa3a44add Use get_bootmodel in amd64 after all, but have it return GENERIC all
the time, otherwise we're left without an installed kernel.
2003-08-31 16:41:53 +00:00
dsl ca995a5145 fix incomplete $id$, delete clause 3 2003-08-30 21:54:42 +00:00
fvdl f921290437 * get_bootmodel doesn't exist on amd64, so don't use it in that case.
* use a size_t for the length argument to sysctl(), not an int
2003-08-30 17:12:49 +00:00
dsl a8f1b6c6be Move definition of PART_USR to md.h where it has a chance of having some effect. 2003-08-30 13:53:28 +00:00
lukem 668e6c5574 s/exitisting/existing/ 2003-08-27 16:00:30 +00:00
dsl 41fc0f3e23 No need to build sysinstmsgs.en (they are compiled into the program).
(I'd failed to persuade make to do this before...)
2003-08-27 10:23:53 +00:00
dsl b969d59ce5 make sysinst compile for amd64 2003-08-19 17:25:49 +00:00
dsl b0559c2322 Add some trailing spaces to force line breaks. 2003-08-19 14:33:16 +00:00
dsl b2fa78b58e Let noexec, nodev and nosuid be written to /ets fstab entries
Always use 1023 cylinders in mbr for large disks
2003-08-10 14:51:48 +00:00
mrg fa688653a3 return type of sizeof() is size_t not long. 2003-08-10 08:28:09 +00:00
mrg b90813089d avoid gcc3 cpp lossage. 2003-08-10 08:26:38 +00:00
dsl fe536754c3 Allow user to shoot themselves in the foot by specifing a non-standard
'average bytes per inode' for each partition.
Fixes PR install/8509
2003-08-09 21:36:26 +00:00
dsl 144c38f82d Don't delete \r that aren't followed by '\n' when relaying program output.
Needed to get progress bar displayed correctly.
Kill a level of indent to get some coding space.
2003-08-09 19:26:38 +00:00
agc 74b7d6e9f2 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22268, verified by myself.
2003-08-07 09:27:56 +00:00
itojun 4b276b6083 use bounded string op 2003-08-06 13:56:58 +00:00
itojun ac9d94f21a use bounded string op and strdup 2003-08-06 13:43:31 +00:00
itojun cad152ee49 use bounded string op 2003-08-06 13:36:53 +00:00
itojun 7f01f184d4 fix realpath vuln, just like SA2003-011. i do not think it attackable 2003-08-06 13:36:16 +00:00
dsl 117888d14f When writing /etc/fstab:
add support for setting mount options of async, noatime, nodevmtine and softdep.
add noauto if 'mount' was not requested.
add entry for /proc (with noauto)
Display fragment size and block size on the correct line.
Ask for numeric fragment size (not # fragments/block).
Show one unused partition when editing disklabel.
Zap all fields when a partition is made FS_UNSED.
Tweak some menu texts (a space at the end of a line causes a line break!).
Simplify code that displays output from commands - curses is requied to not DTRT
with CR/LF sequences, I need to revert libcurses :-(
2003-08-05 13:35:26 +00:00
skrll 0dcbb09c7a Put a quote in the right place. 2003-08-04 09:23:50 +00:00
lukem 980c535c83 the new world order is to use DPSRCS to add extra dependencies... 2003-08-02 05:16:56 +00:00
hubertf e13dec7b2a Making device files -> Making device nodes 2003-07-31 13:50:05 +00:00
dsl 11d928c5ee Fix display of localtime on timezone update screen.
(missing "." in "%.*s")
Reduce memory leak in setenv() by only calling it for changes.
2003-07-29 12:08:32 +00:00
dsl 02dbd70852 Remove extra process and pipe that relayed data from the master pty
to sysinst's main process when a command is run (eg the file list from pax).
Since the pty is in 'packet' mode, the boundaries of the pty reads would
need to be preserved in order to detect control records.
If the pipe became full the main process could treat part of a filename
as a control byte and then save the rest of the name as tty settings.
The effect of 'random' tty settings is unknown, but could be responsible
for core dumps while displaying the full file list from pax.
I suspect that the extra pipe was originally used because select wasn't
supported on the master side of a pty (not checked).

Also cd out of /targetroot if set installation is killed with ^C ^C.
2003-07-28 11:32:21 +00:00
dsl b42a6fa21a Stop (attempted) coredump when ftp/nfs install attempted.
(incorrect empty strings check for active interfaces)
2003-07-27 21:09:57 +00:00
dsl d0bba60fad Default boot blocks to those used to install the system.
Add 19200 baud and serial ports com1, com2 and com3.
Fixes PR install/21418
2003-07-27 20:25:07 +00:00
dsl faefcd3805 Force localfs_dir to be an absolute path - fixes PR install/14130.
Put disklabel info into /tmp/disktab in case / isn't writable,
fixes PR 17347.  Note the /etc/disktab isn't the target /etc anyway...
2003-07-27 08:57:27 +00:00
dsl 96ace5d58c Remove 'menu_ent' parameter from action routines.
Add menu for all disklabel partition types.
Default 'partition type' and 'sizechoice' menus to current value.
Change 'standard/use existing' to 'set sizes/use existing'.
2003-07-27 07:45:08 +00:00
salo 8d1781e39d netbsd.org->NetBSD.org 2003-07-26 17:06:22 +00:00
dsl 7f5beafa6b Sprinkle a load of consts, and change a few variable names.
Now compiles with WARNS=3.
2003-07-25 08:26:21 +00:00
dsl f8beccb8d0 Ask for sets when doing 'install more sets' 2003-07-22 12:18:39 +00:00
dsl 92c7597c91 Specify username+password to ftp even when username is 'ftp'.
Only use 'ftp -a ...' when the username is ftp and the password is null.
Fixed PR install/13656
2003-07-22 11:45:16 +00:00
dsl bdd53bdf93 Output a messge before the 5 second delay while the network comes up.
Ask user before deleting set files (fixes PR/7190).
2003-07-22 08:30:10 +00:00
abs ef8e75ce98 Make net_namesvr6 extern again to fix compilation if INET6 is defined. 2003-07-19 22:07:36 +00:00
dsl 195bdd51af Tested version of code to get local directory (I'd got waylaid by etc.old)
Messages for net.c changes.
2003-07-18 10:29:36 +00:00
dsl 0bf9a036c9 Remember which sets we sucessfully installed (so we know when to
restore /etc).
Improve handling of absent directories in get_via_localdir.
distname[] isn't needed (twice)
2003-07-18 09:49:18 +00:00
dsl da36837548 Copy /etc.old back to /etc if it was saved, but we didn't actually
install the ETC set.
2003-07-18 09:46:11 +00:00
dsl 6e575ea980 Network info has gone to net.c and is now static.
Stuff to put /etc back in upgrade aborted.
2003-07-18 09:44:20 +00:00
dsl 9a9b340a64 Pull local data here and make it static.
Remove one or two fixed length strings (use malloc etc instead).
Change a lot of 'if (strlen(x) == 0)' to 'if (x[0] === 0)'.
Let user skip network config if any non-loopback interfaces are UP.
Always free() buffer allocated by collect(), could be a massive leak.
Whitespace changes.
2003-07-18 09:42:59 +00:00
dsl 6684cadd5e Remove some fixed length strings.
Do limited filename globbing.
2003-07-18 09:34:42 +00:00
lukem be22974820 deprecate; i replaced this with distrib/common/sunbootcd.sh a while ago 2003-07-18 00:37:35 +00:00
dsl 9c3018b9f2 Remove the endwin() and refresh() pair which caused the screen to flash
whenever a command was run.  Maybe a screen redraw is required if the
command is able to corrupt the screen - but the refresh was happening
much too early to fix that, and it would be better to collect/discard
the commands output anyway.
2003-07-17 19:44:53 +00:00
dsl 6445d05466 Add explicit msg_string() call to MSG_hidden to stop core dump
when the password is set and the usename not ftp.
Whitespace changes.
2003-07-14 10:53:42 +00:00
dsl a2d5357066 Fix code that guesses bios geometry from mbr info.
When asking for bios geometry, ask for sectors per track and heads
then calculate cylinders from volume size.
Write MBR_MAGIC into correct place when writing extened partitions.
2003-07-14 09:59:00 +00:00
dsl e64fcd4452 Use a menu when asking for the install disk (fixes PR install/20121).
Make disk_desc[], disk and numdisks local to get_disks (instead of globals).
Fix a little fallout from the above.
A bit of mbr.c was missing #ifdef BOOTSEL...
2003-07-11 15:28:58 +00:00
dsl 8e56a9f2a2 Delete code that did nothing!
The disk parameters it fetched were overwritten by those obtained (from
the default label) in get_disks.
2003-07-11 14:48:42 +00:00
dsl 0f636f6d49 Ensure correct curses tty settings are restored after a program runs.
Remove the abberant call to endwin() in i386 md_update() that caused
echo to be left on. I've not removed the endwin from the other ports.
Only run MAKEDEV if etc.tgz installed.
Some extra sanity checks on an 'rm -rf %s'.
2003-07-10 13:36:48 +00:00
lukem 001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
dsl 5a411fd464 Create mount point used for target system. 2003-07-09 20:02:35 +00:00
dsl 6da321c1aa Sort out (and remember) the disk partition we will install into.
This should stop the i386 code splatting all over the start of the disk
during upgrade.
Upgrade will still use partition 'a' (unless you loop through the install
far enough first!)
2003-07-08 17:38:54 +00:00
dsl a72609cec0 Only save and merge /etc if the /etc set is being installed.
Actually this needs changing to use /usr/sbin/etcupdate (or similar),
but the script needs fixing first.
Might be better for sysinst to have its own copy, gets to be fun to run
because you have to pull the commands from the target FS.
2003-07-08 16:12:18 +00:00
dsl 294dd49644 Stop timezone submenu exploding (strcmp of MSG_xxxx).
Allow mbr partition type to be changed without losing disklabel info
for same area of disk (allows type to be changed from 165 to 169).
2003-07-08 11:58:57 +00:00
dsl 4314639609 Remove some messages that are not used and are unliklely to be needed. 2003-07-07 21:26:32 +00:00
dsl 33ae7b798b Fix non-i386 builds 2003-07-07 12:55:48 +00:00
dsl 0e919832bd Another pass of the rototiller. Mainly:
1) New MBR editor
2) Hierarchic timezone menu
2003-07-07 12:30:19 +00:00
dsl d46341db86 Add French and Polish message file to i386 ramdisk.big
Change dummy dependancy for sysyinst message files so they get built
by the crunched makefile.
2003-06-28 08:25:07 +00:00
dsl 16a2d1e961 Add run-time selection of installation language.
Make 'doingwhat' an argument to find_disks() instead of a global.
2003-06-27 22:20:14 +00:00
dsl 5363c7e2ee Pull texts from MI menus into language dependant text files.
Minor change to name of some strings (eg: MSG_yes -> MSG_Yes == "Yes")
2003-06-27 13:36:04 +00:00
dbj 68c6633b6a avoid complex regular expression features not available in older awks 2003-06-25 22:08:30 +00:00
dsl 9ef6b561d7 Add a -D (debug) option for testing.
Ignore inability to remove swap if -D specified.
Select disk before sets (but label after)
Let mac68k sysinst run on i386.
2003-06-25 15:45:21 +00:00
dsl 4652a607d7 French messages - from Adrien Auzanneau 2003-06-25 15:41:16 +00:00
dsl 217d84900a Fix stupid typo 2003-06-16 20:12:44 +00:00
dsl 24a3da65f0 Fix some typos 2003-06-16 20:11:40 +00:00
dsl 855d662c15 Whitespace fixes 2003-06-16 20:10:02 +00:00
dsl 08fc1c1957 A load of KNF changes, plus a couple of strnxxx => strlxxx my fingers did
on the way through.
2003-06-16 19:42:13 +00:00
dsl 430c90c3f6 Correct check for active swap on install disk.
Use swapctl() for all swap operations.
Remove md_upgrade_mbrtype() from arc and hpcmips ports.
(I haven't finalised what I'm doing about type 165 partitions, but the
existing code is borked.)
2003-06-16 10:42:47 +00:00
dsl 17ae477780 Implement a limit on the size of / so that its guaranteed readable by the boot code.
Remove pointless 'len' parameter from read_mbr and write_mbr.
Make read_mbr initialise mbr if it can't be read (delete MD code).
Make i386 always ask at least once about the bootcode.
Move LIB_MOVE and LIB_COUNT from md.h to aout2elf.c
2003-06-14 12:58:45 +00:00
dsl deef134ca4 Fix code that determines BIOS CHS from MBR - used to get confused by big disks.
Make same function return useful defaults if it can't find an answer.
Make all ports default to the useful defaults if bios geometry is unknown.
Move some messages to mbr set from mi set.
Fix i386 code that selects which bios disk, simplify interface to menus.
Remove now unnecessary global data from many ports.
2003-06-13 22:27:03 +00:00
dsl bc119f42a4 Remove all references to minfsdmb and STDNEEDMB - neither are used any more. 2003-06-13 11:57:28 +00:00
dsl 88e7a0c7dc Report actual minimum size of partitions (instead of a number that is
4 times system memory). (These numbers need moving to a different menu still.)
Remove size of /usr from default sized / when /usr created.
Shrink swap in order to get partitions into available disk space.
Add twice ram size to / if space available (for system dumps).
Keep all but last partition cylinder aligned when the disk isn't a whole
number of cylinders.
2003-06-13 11:45:49 +00:00
dsl 52e8cddd9b KNF 2003-06-12 16:48:43 +00:00
dsl 84bdf1950e kernel names mixed up on i386/amd64 port
Default to TINY, LAPTOP or PS2 if running from such a kernel.
Do wscons stuff unless we installed a TINT kernel (not if running one)
2003-06-12 12:41:55 +00:00
dsl d7bcb6d75d Move emulbackup message to MI set (conditional on AOUT2ELF marker).
Remove abberant dependencies of fdisk.o and md.o against menu/msg_defs.h
(nbmake depend gives the correct dependencies)
2003-06-12 11:20:00 +00:00
dsl 6a7cda9698 Move a couple of messages into msg.mbr.??
Remove some unused menus and messages from the ports that use mbr.c
(I'll re-implement the 1024 cylinder limit properly soon...)
2003-06-12 10:51:37 +00:00
dsl c9b8d8909b make rammb sum correct for memory sizes between 2GB and 4GB.
Fixes sysinst/17551
2003-06-11 23:06:15 +00:00
dsl 31a2215cd0 Fix window size when asking for partition mount pt and size.
Hack to give free space to a default sized /usr
Add extra space to / and /usr is any of the X sets are included.
Remove last reference to 'layoutkind == 3'.
2003-06-11 22:17:03 +00:00
dsl 608254d0b8 rototil of the set selection menu
I've also made the set selection happen first.  This lets me test it!
also measn the selected sets could be used in the disk partition code.
Removed the 'with X' disk layout question (now too late to change the sets).
2003-06-11 21:35:35 +00:00
dsl 8fc9389e15 KNF 2003-06-11 11:00:39 +00:00
dsl df45325b8e Make French and Polish compile (many missing translations though) 2003-06-11 09:03:32 +00:00
dsl 3316b2a3d8 Use dynamic menu for final editing of partition stable 2003-06-10 17:47:15 +00:00
dsl 44fa8ce69d Use dynamic menu to select partition to edit 2003-06-09 19:06:48 +00:00
dsl 99d1eb21d4 Add (back) support for mfs /tmp
Fix menu size so that user defined partitions can be allocated instead of
standard ones (need > MAXPARTITIONS entries in menu).
Make partition size info static - with a view to including it in a longer loop.
2003-06-06 21:37:13 +00:00
dsl 8e9ba8b898 Fix build if MAXPARTITIONS is 8 2003-06-06 19:04:55 +00:00
dsl 783c7d4424 Delete more messages that are never output 2003-06-06 18:57:13 +00:00
dsl 456a798f32 Remove a cpuple of unused buffers 2003-06-06 17:05:02 +00:00
dsl 32fda96392 Remove a load of messages that are no longer used.
Make the French and Polish versions compile (seems I didn't fix it last time)
2003-06-06 14:31:22 +00:00
dsl 7504698df3 Change i386 sysinst to use my new boot code.
Update lists for ramdisks to include the required files.
NB /usr/sbin/installboot is not used by sysinst and is only in ramdisk-big.
Increase the sizes of the ramdisks, there is plenty of space in all the
boot floppies except rescue-tiny (2k) and boot-tiny (32k).
2003-06-05 14:30:11 +00:00
dsl d19795892c A rototil of the partition size requesting code. 2003-06-04 20:05:12 +00:00
dsl 8376bdad86 Add extra parameter (exit text) to new_menu() calls 2003-06-04 19:09:50 +00:00
dsl 19b2fb2fb0 Add NULL to all process_menu() calls - value is passed through to the
action routine.
Make the french and polish versions compile.
NB needs a new version of menuc - so need 'build.sh tools'
2003-06-03 11:54:48 +00:00
dsl d800ee579a No need to #include "bsddisklabel.c" into md.c, add to Makefile instead. 2003-05-31 08:09:59 +00:00
dsl b62cbc21e9 Make all architectures (except amiga and mac68k) use the MI make_bsd_partitions.
This does change the default size of /, but I'm going to rewrite
make_bsd_partitions next to make it less user-hostile.
(I'm not sure adding in 2 * ram is actually useful! Especially size it left
/usr with a -ve size on all my test installs with 256MB ram and 1GB disk)
Make bootsel code delete menu names if the partition is unused.
Use raw device for cdrom access (I've a kernel that doesn't report an invalid
label so /dev/cd0a dosn't work).
2003-05-30 22:17:00 +00:00
dsl b0b2a88fe2 KNF 2003-05-30 17:34:31 +00:00
dsl 028c9f0a91 KNF 2003-05-30 17:24:13 +00:00
dsl 127236bc6a KNF 2003-05-30 13:58:25 +00:00
dsl 291768820b KNF 2003-05-30 13:34:58 +00:00
dsl ad480b2e44 KNF 2003-05-30 13:23:26 +00:00
dsl 4948e51933 layout changes 2003-05-30 13:13:30 +00:00
dsl 4b8e98ee2a Further collapsing of MD code:
- make_bsd_partitions() correctly handles PART_BOOT
- use bsddisklabel.c for pc532 and sgimips (this does change the default size
  for the root partition, as it no longer includes twice the memory size).
- Change way ports define disk_names[] (in particular this lets me add "vnd"
  for testing), also ensures all ports pick up new drivers.
  I've make most ports use the default "wd", "sd", "ld".
  Abort the search for disk units if we get ENOENT (ie no /dev entry) to
  speed up the case where we are looking for a disk type that isn't
  supprted by the port.
  (it is possible we could just check all possible disks on all ports...)
2003-05-30 11:56:23 +00:00
dsl c522fd9f62 partsize and partstart don't need to be globals 2003-05-29 17:54:22 +00:00
dsl 4ed96ba68a Use local partstart and partsize.
Add code that might let this code add the boot partition for the 2 ports that need it.
2003-05-29 17:53:24 +00:00
dsl 83067f27c6 psrtsize and partstart are only over used inside md_make_bsd_partitions,
use locals instead of globals.
2003-05-29 17:51:26 +00:00
dsl 6fb33c4537 Reduce the number of global variables slightly, use the ones that are
left consistently.
Make the i386 install let you partition a disk beyond the CHS limit if the
system bios doesn't support LBA reads (the checks aren't ideal yet).
Make the bsddislabel.c code usable onan i386 system - but don't use it yet.
2003-05-21 10:05:20 +00:00
dsl 09746cd0ad Stop double-inclusion being an error.
Adjust whitespace and remove names from prototypes
2003-05-18 20:40:09 +00:00
dsl 1d6ff8632d White-space, buffer-overrun and long-line police,
Correct code that selects one of the available disks.
2003-05-18 20:04:21 +00:00
dsl 33180ff44d Use MD menus and msgs for mbr code.
Remove a couple of unused variables.
Use actual raw partition when looking for disklabel in sparc code
2003-05-18 18:54:05 +00:00
dsl b1389a6fef md menus and messages are taken from the i386 directory.
mbr stuff is now mi
2003-05-18 08:00:38 +00:00
dsl 04a7d9497e Use same code as i386 2003-05-18 07:58:10 +00:00
dsl 2de0c528b3 Remove some unused definitions 2003-05-18 07:57:28 +00:00
dsl 949c967305 Pull md menus and msgs from i386 port.
Enable BOOTSEL stuff from mbr.c
2003-05-18 07:56:30 +00:00
dsl 9a5b2e3d2a Use snprintf just in case target_expand() generates some long strings.
#if the bootmodel stuff so that the amd64 port can use the same file
2003-05-18 07:52:57 +00:00
dsl 633389164c Fix typo in previous 2003-05-18 07:44:41 +00:00
dsl adaf65b7b4 Language dependent menus are no longer pertinent 2003-05-16 20:08:01 +00:00
dsl 3db1aaa735 Don't overwrite existing bootsel config when reading new bootcode.
configure_bootsel moved to MI code (I have plans for it...)
Make menu file language independant.
Move menus and message for MBR to MI files.
2003-05-16 19:48:29 +00:00
dsl d41b09d182 Report number for unknown MBR partition types.
Correct bootseect default for new mbr code.
Add bootsel config code (from arch/i386/md.c)
2003-05-16 19:44:23 +00:00
dsl 17f917ce63 Move definition of BOOTSEL to MD Makefile 2003-05-16 19:38:18 +00:00
dsl 74b0587c5b Use sizeof() to be absolutely certain there are no buffer overruns.
Use strlcpy() instead of strncpy() where appropriate.
Recode timezone menu so that it can stand opt_name being const char *
and to only do the fts_read() once (there were problems if the filestore
changed between passes!).
Remove stupid check for errno != 0 which probably stopped the tomezone
menu being displayed!
2003-05-16 19:34:00 +00:00
dsl 0c692843f6 Add missing messages (need translating) 2003-05-16 19:29:18 +00:00
dsl a79e0abb89 Remove language independant header (now in its own file).
Add missing menus to french file (need translating)
2003-05-16 19:28:10 +00:00
dsl ccdfb7c4d2 Add a language independant header to the menu file.
Let MD Makefile specify the required MD menu and message files.
Pass menu and message files though a script to remove conditionals.
2003-05-16 19:25:24 +00:00
dsl 9fb220ed6a Pull menu/msg files for setting up the mbr out of the md set.
The md code will pull in the correct set of menu and messages.
(the msg.mbr.fr has an untranslated message - volunteers?)
2003-05-16 19:15:00 +00:00
dsl 17c72be2df Add a '}' that has been missing since september 2000 2003-05-16 16:28:10 +00:00
dsl 259e7b9bcc Fix typo in previous,
Delete some unused variables
2003-05-15 08:09:51 +00:00
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
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +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
elric bbf4f2d867 Sync this file up with its counterpart in libc,
src/lib/libc/gen/getgrent.c
Patch and PR provided by: FUKAUMI Naoki

Addresses PR lib/20365
2003-02-19 08:04:29 +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
perry 8a49ec08e4 "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 23:07:28 +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
tsutsui 6b54faae89 EOL x_mount. 2003-01-19 12:35:00 +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
chris e1f2f4db9e As sys/locale.h no longer includes some extraneous headers, localeconv.c
needs to include limits.h itself.
2002-11-19 23:15:59 +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 ea0637c5af Now that usr.bin/ftp/Makefile supports SMALLPROG and SMALLPROG_INET6,
we don't need distrib/utils/x_ftp anymore...
2002-10-17 06:38:15 +00:00
lukem f36008676d Remove these, since platforms using the New Distrib World Order have
been building these using the basesrc Makefiles with SMALLPROG defined
for a while now.
2002-10-17 06:02:34 +00:00