Commit Graph

888 Commits

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