Commit Graph

1280 Commits

Author SHA1 Message Date
dsl da414ff103 Remove the globals ramsize and rammb, the former was only ever used inside
a single function, the latter is now the return value of get_ramsize().
Changed all uses of rammb to get_ramsize().
Used the 64bit HW_PHYSMEM64 so silly things don't happen if the memory size
approaches (or even exceeds) 4GB.
2004-07-17 10:55:03 +00:00
dsl f2fcef0432 'verbose' and 'silent' were switched - correct.
Fixes PR/26283
Also removed 'static int verbose' and passed as a parameter.
2004-07-16 21:35:44 +00:00
dsl 85fdb1645f Nuke reask_sizemult() - it isn't used any more 2004-07-15 21:06:45 +00:00
christos 3a471759da PR/26201: Jukka Salmi: sysinst dumps core on NetBSD 2.0_BETA i386
The problem is that current_cylsize is used in the menu to select
rounding, and it is un-initialized at this point.
XXX: Must be pulled up to 2.0
2004-07-12 22:33:21 +00:00
martin 6d08c6a728 Translate language selection string. 2004-06-29 16:02:59 +00:00
bouyer 80ee929c70 Translate "Keyboard type" to french. 2004-06-14 21:49:15 +00:00
dsl 6ca1928243 German translation of 'keyboard type' from Martin. 2004-06-14 21:38:55 +00:00
dsl a9372a42f1 Add a menu (right at the start) to ask for the keyboard type.
Save the result in /etc/wscons.conf at the end of the install/upgrade.
Currently only builds for i386 - change arch/*/Makefile and add the
extra messages (though they could go into the msg.mi.* files).
Needs the 'Keyboard type' message translated in to German, French and polish.
Maybe the keyboard type names could be less cryptic...
2004-06-12 19:18:24 +00:00
wiz ebcfc8acc7 Grammar fix. 2004-06-12 15:55:23 +00:00
he 0433215caf Add "extern" to a couple of array declarations. Declaring an
undimensioned array in the outer scope will produce warnings that
it's assumed to have one element, and under -Werror will fail to
compile.
2004-06-12 14:44:42 +00:00
hubertf 287db2b13f fix language, noted by logix@#NetBSD 2004-06-12 13:03:12 +00:00
abs 1d7a1ebd79 Define and use NOTINCRUNCHED to allow sparkcrc to overide the ../Makefile.inc
default of building static and not allowing install. Now we can build it as
a tool.
2004-06-09 16:03:37 +00:00
abs 462934eac0 Import a trivial program to generate 16bit CRCs as used in sparkive archives.
For use by mksparkive.sh in generating the acorn32 bootloader sparkive.
2004-06-08 21:43:40 +00:00
bouyer 8381338c9b Adapt the french translation to the split base/sets directories, and other
minor nits.
2004-06-07 18:27:39 +00:00
christos cdc016624f add an empty setlogmask() 2004-06-06 18:13:45 +00:00
christos 0f6740656b Include a fake syslog that does only printf; saves 4K. 2004-06-06 07:03:53 +00:00
christos 2fe9365746 Get rid of the EXTERN/INIT mess; fix so that we can process this with xstr(1).
Not worth processing though, since on the i386 we only save ~3K.
2004-06-06 06:06:59 +00:00
christos 543c223a3a Avoid EXTERN use. 2004-06-06 05:45:04 +00:00
dsl 3a2118e931 A load of usability fixes mainly to network installs.
I've made the error retry loops go back as far as the input menus.
Split all the pathname inputs into 2 pieces (base directory and set directory).
Reduced the size of some fixed strings.
Stopped the install aborting if ftp can't find a set (eg the X ones).
The French and Polish transations don't differenciate between Base_dir and
Set_dir - but that can be fixed later.
2004-06-05 21:18:59 +00:00
martin 1d0c7770c6 Make message net_media short enough (it needs space for [autoselect]
after it and should stay within 80 columns)
2004-06-05 15:35:51 +00:00
dsl 877f2a42a4 Remove the parts of messages that refer to etc.old. 2004-05-22 18:06:14 +00:00
dsl 31c19c2213 Kill etc_saved and the prototype for save_etc() 2004-05-22 17:38:26 +00:00
dsl 15973dd816 Remove all the code (mostly already under #if 0) that played around
with etc.old
2004-05-22 17:31:37 +00:00
cube 0d27523fe4 dd->dd_no_mbr has to always be initialized. It doesn't default to 0 since
it is allocated on the stack.  Thus, allow editing the MBR partition table
on disks that actually have a MBR.
2004-05-18 14:07:06 +00:00
dsl 568270beb4 Parse a disk name of "raid:no_mbr" to mean "raid" but without any mbr
setup (on i386).  Allows sysinst to install to an existing RAID1 volume.
2004-05-15 21:53:29 +00:00
dsl 9e2ccccce9 Don't leak an fd if malloc() fails in collect() 2004-05-15 21:51:30 +00:00
dsl d3ff291eea Reduce the number of times <enter> must be typed during network setup. 2004-05-15 21:48:09 +00:00
mhitch 4580796d6b Fix path to installboot and the boot image. 2004-05-10 01:50:32 +00:00
sommerfeld faa802158e Change hack getnetbyaddr to match new system prototype. 2004-05-09 01:49:56 +00:00
dsl c3f4dda582 Add GENERIC.MP
Fixes PR port-alpha/25244
2004-05-08 14:39:01 +00:00
dsl a13f1e12e5 Kill message used when amd64 used an 'out of tree' toolchain 2004-05-08 14:25:58 +00:00
gendalia 46bfcf8667 add "raid" raidframe disks to the list of disks sysinst can install to.
assembling the raid is still an exercise left to the person doing the install.
2004-04-29 20:47:52 +00:00
dsl ead1276789 'ptn' may be ' ' so sprintf(..., "/dev/r%s%c", disk, ptn) won't work!
Convert ' ' to 0 to ensure a valid device name is genarated.
(This will be a problem in 'upgrade' when filesystems are mounted
using the targets extisting /etc/fstab.)
2004-04-28 20:59:32 +00:00
dsl d448a28e66 Fix mbr bootcode handling to ensure that the bootselect table is always
written into the correct place - even if the user decides not to update
the mbr code and has the old (pre layout change) code installed.
Tell the user that the mbr code needs updating if the new install uses
'all the disk' and teh old version had the bootselect code (otherwise you
get an empty menu).
Probably fixes PR install/25146
2004-04-25 21:55:18 +00:00
dbj ebf6621efd fix typo when specifying raw partition for fixsb upgrade 2004-04-25 18:50:44 +00:00
dbj af071a423f fix bug with fixsb taking ptn+'a'
use union to align struct fs
don't check error return from fsck upgrade/downgrade runs
use RUN_DISPLAY | RUN_PROGRESS when running upgrade runs
don't use opendisk
2004-04-25 18:40:37 +00:00
dsl 24cedfbba2 Merge in code from my version of Darrin's fixsb routine (we both wrote
much the same function).
Mainly some extra comments, also moved a 'static' so we use 512bytes of
stack and not static data.  Killed call to access() as it is pointless
and doesn't do what you want (access is for suid programs to check whether
the real user could do the operation).
2004-04-25 17:15:27 +00:00
christos 6101c5d9b5 arrange for libc's getcap to be used instead of a local copy. 2004-04-25 06:45:02 +00:00
matt e0aa03fd40 Adapt to stdlib.h/libc changes. 2004-04-25 04:35:36 +00:00
dbj b082781025 fix parenthesis in fixsb. oops 2004-04-24 20:54:26 +00:00
dbj c8025f6a1e ensure that sblk is 64bit aligned, fix suggested by dsl 2004-04-24 20:51:30 +00:00
dbj 4b198427c0 fix pread return check in fixsb. caught by dsl 2004-04-24 20:48:57 +00:00
dbj 41c60f0331 fixsb script for sysinst
addresses pr install/25138
2004-04-24 20:42:39 +00:00
christos 02d8761f8f No need for extra copy of umount.c 2004-04-21 15:22:10 +00:00
dsl 5d2ed42cb6 Throw out all the crap to do with etc.old, instead install etc/tgz
into /.sysinst and use /etc/postinstall to do the merge.
2004-04-18 21:34:56 +00:00
dsl 0c254de011 Delete a load of code that has been under '#if 0' for a while 2004-04-18 20:42:19 +00:00
dsl fdba28e796 Now that the language variants are built using message files, remove
the last vestages of the code that supresses specific languages for
specific archtectures.
2004-04-18 19:54:39 +00:00
dsl 06a490c597 Polish translations from Dawid Szymanski in PR install/25224
(with a couple of tweaks from me)
2004-04-18 18:55:19 +00:00
atatat bfc8238d29 Said "Mount pount"...now says "Mount point". 2004-04-17 18:55:35 +00:00
grant f515428a88 use ${DISTRIBVER} for the version number, not ${VER}.
from Kouichirou Hiratsuka in PR install/24995.
2004-04-12 03:49:24 +00:00
bouyer 674778a808 Some more minor fixes in text. 2004-03-29 16:08:20 +00:00
bouyer 7bba7dc5e7 Translate the remaining untranslated messages, and others small fixes. 2004-03-28 19:06:49 +00:00
mrg 79e6177746 delete these old sources. use usr.bin/gzip sources but disable a lot of
stuff: bz2 support, compress support, many non-required options.

now x_gzip supports "gzip -l" so sysinst should work for these platforms.

gzip will grow slightly - 400 or so bytes on x86 - but this is a small
price to pay for working -l support...
2004-03-28 04:10:43 +00:00
dsl 52f6f4a9de Collect the bootsel info from 'old' - since luke moved the bootsel date
to allow for a M$ disk number.
2004-03-27 20:47:33 +00:00
dsl 9bd630553a fix breakeage caused by delete of emptylabel() 2004-03-26 20:02:22 +00:00
dsl ad184b340b Kill emptylabel() is doesn't DTRT since it doesn't know the size of the array.
Fixes breakage caused by copying oldlabel to bsdlabel for update.
Don't look for 'last mounted' in first alternate superblock.
2004-03-26 19:55:13 +00:00
dsl 3a7dc7f8e9 Generate correct internal data when reading an extended mbr partition
that has holes.
This needs the 'bios sectors per track' before it has been setup - so we
default it to the 'hardware' value.  Since both numbers are 63, and this only
affects the size of the headers on extended partitions it should be safe.
2004-03-26 17:38:44 +00:00
dsl 6e14ab5068 Copy 'oldlabel' to 'newlabel' when we read it - should mean that
sysinst 'upgrade' will find the correct filesystem type and install
the correct boot code.
Fixes PR install/24812
2004-03-26 17:28:55 +00:00
lukem 455da8e60b Move mbr_bootsel from offset 404 to offset 400 in struct mbr_sector to
leave 4 bytes for the Windows NT Drive Serial Number (DSN) at 440-443
(as mbr_sector.mbr_dsn).

Ensure that all the MBR & PBR code reserves space for mbr_sector.mbr_dsn.

Leave the bootsel magic number at 444-445 as mbr_sector.mbr_bootsel_magic
(instead of mbr_sector.mbr_bootsel.mbrbs_magic), but use 0xb5e1 (MBR_BS_MAGIC)
instead of 0xaa55 (MBR_MAGIC) to indicate that this change has occurred.

Rework MBR_BS_NEWMBR to mean "mbr_bootsel has moved to 400".

Modify fdisk(8) to automatically relocate the mbr_bootsel from 404 to 400
if mbr_bootsel_magic is the old value (0xaa55), and unset MBR_BS_NEWMBR
to flag that new mbr_bootsel code must be used if updating the MBR.


These changes fixes a problem where Windows 2000 or Windows XP would corrupt
the last 3 bytes + NUL of MBR partition 3's bootsel name if the bootsel name
was 5 characters long, replacing bytes 6-9 with the DSN.
Also, by explicitly reserving the space for the DSN we prevent problems in the
future if non bootsel MBR or PBR code had other information at bytes 440-443.
2004-03-22 07:11:00 +00:00
martin 00547f464a More language tweaks. Still needs spell checking and testing. 2004-03-08 10:44:45 +00:00
dsl d6066102c0 Consistent capitalisation 2004-03-07 00:47:18 +00:00
dsl 82d39342cb Fix a spelling mistake and align a title properly 2004-03-07 00:40:45 +00:00
jmc 0552ea7875 Add inital stubs for sysinst. BRought over from evbppc 2004-03-05 05:36:11 +00:00
jmc b8da873003 Add back missing } that was deleted on last commit. Now file parse correctly. 2004-03-05 05:35:16 +00:00
martin 8b97cd3587 More language tuning (not finished with this file though) 2004-03-04 23:44:16 +00:00
martin 42be584ab4 Slight tweaks, all typos are mine. 2004-03-04 19:15:30 +00:00
martin 3ad34393be Some slight language polishing. All typos are mine... 2004-03-04 15:26:02 +00:00
wiz 5de9082b5b Fix typos, add an article.
XXX: still contains untranslated messages.
2004-03-04 14:49:22 +00:00
martin 2fe4859877 Germand sysinst translation for mac68k sysinst. Someone please check
for typos ;-)
Why is this so much different than other ports?
2004-03-04 14:28:49 +00:00
martin 864712fbce No german version for x68k sysinst - it can't display iso-8859-1 characters
correctly.
2004-03-04 10:16:07 +00:00
martin 6f5bc16567 Smooth some language slightly (part a-e) 2004-03-03 22:21:05 +00:00
dsl 513ea85ff9 Fix some of the more blatent alignment problems in the german translation 2004-02-29 23:25:09 +00:00
dsl 1d320fd29f All the ports should build now... 2004-02-29 21:57:07 +00:00
dsl 0cb068544d mmm no one checked the cross builds.... 2004-02-29 21:51:11 +00:00
dsl d714057f9c Fix typo 2004-02-29 21:48:09 +00:00
jschauma 716dbdc9a8 Add German messages for sysinst, as provided by Hernani Marques Madeira
(hernani at tuners dot ch).  Many thanks for the work!

(German speaking people: please try this out and suggest improvements.)
2004-02-29 18:46:43 +00:00
jschauma 985db8fe7c Fix some typos:
There is an valid -> There is a valid
toochain -> toolchain

Noted in private email/patch by Hernani Marques Madeira (hernani at tuners
dot ch).
2004-02-23 03:44:29 +00:00
he e49da78c8f Add a list of files which determine the kernel version as
DISTRIBVERDEP in Makefile.distrib, and make both sysinst and
distribution notes use that information so that they rebuild
if the kernel version changes.

Distribution notes didn't have this before, sysinst had a private
(now outdated, since sys/sys/param.h now determines version) copy
of this.
2004-02-02 18:43:39 +00:00
lukem 1d92dd6bcf Add support for "xetc". 2004-01-29 08:48:23 +00:00
dsl 056e02d208 Copy over the correct entry when writing out an extended partition list
that has holes in it.
2004-01-18 16:27:25 +00:00
dsl ddabfc4cf4 Fix sector numbers written in extended partition chin.
Don't write out dummy extended partitions for unused ares in the extended
partition.
Add some more comments - I write this and I couldn't remember how it worked.
2004-01-18 12:23:36 +00:00
lukem c434d47afe Remove references to xcontrib and xmisc now that they've been merged
into xbase.
2004-01-17 05:30:01 +00:00
lukem e6789de0c9 be consistent with other platforms and select xfont as well... 2004-01-17 05:29:29 +00:00
christos 9f69d1d028 Add an argument to cp_within_target that indicates if the file is optional
or really should be there. Use that for files that are not necessarily
present.
2003-12-28 05:30:47 +00:00
simonb 5f17a878b1 ANSIfy, de-__P(), minor KNF. 2003-12-22 02:05:10 +00:00
martin eb3f00e1e9 When upgrading an old system, install new bootblocks too.
Fixes PR port-sparc64/17204.
2003-12-10 19:42:51 +00:00
agc 7db1d33cba Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
2003-12-10 12:06:25 +00:00
lukem 388cd3a59c use ${.CURDIR:T} instead of ${.OBJDIR:T}, per similar change in bsd.own.mk 2003-12-01 01:11:57 +00:00
dsl 31d8f670de - Change enum for partition numbers from [A..Z] to PART_[A..P] (16 is enough)
- Rename run_prog() to run_program() and remove the 'errmsg' argument (almost
  never used).
- Be consistent about #define<space> in defs.h
- Allow BSDFFS partitions to be FFSv1 or FFSv2 (fixes PR install/23547)
- i386: install correct bootblocks for root filesystem type.
- Do 'fsck -p' before all mounts (but never a full fsck), rename fsck_xxx()
  to mount_xxx() and remove some wrapper functions.
- Allow root to be an APPLEUFS partition - and allow them to be newfsed,
  should fix PR install/23198
- Redo fstab processing for upgrade to avoid large static data items and
  memory leaks.  Change walk() to abort on user defined error.
  (the fstab stuff really needs more work though...)
- i386: 'Warp' cursor to alternate option when selecting console/bootblocks,
  should fix PR port-i386/23546.
- Allow MENU_ok and MENU_yesno to take user defined title.
- Ensure that mountpoint not defined for swap (and similar issues) when
  editing netbsd label.
- Tweaks to error handling in run_program(), allow user to say that errors
  are expected or that the display shouldn't be cleared before returning.
- Remove some old code that has been festering under #if 0
2003-11-30 14:36:43 +00:00
dsl 2726af786f When rounding a partition to end on a cylinder boundary, round the start
down to a cylinder boundary before adding in the requested size.
Stops the partition being one cylinder larger than requested when the
partition doesn't start at the beginning of a cylinder (eg for partitions
starting in sector 63).
Fixes part of PR install/23548
2003-11-27 21:43:22 +00:00
dsl 6750190db8 Add some progress messages for MAKEVERBOSE == 1
Tweak dependency rules for (menu|msg)_defs.h so that everything isn't
recompiled if the xxx_def file has changed but the generated header
is unaffected.
2003-11-20 13:13:38 +00:00
dsl b528ce0e0b Don't take the size of an mfs /tmp off the free disk space,
nor count a partition for it.
(Maybe the size of /tmp should be capped by that of swap.)
2003-11-20 09:47:53 +00:00
dsl 3cbf1bc2e1 ping generates output, don't wait for user to acknowledge it. 2003-11-19 00:16:49 +00:00
sekiya 1cc0ebce1f A few sysinst fixes:
* use cd0a rather than cd0[cd] as the CDROM installation device.
	  This fixes problems with platforms that install from iso9660 images
	  encapsulated in a partition, and should not affect platforms that
	  don't.
	* add RUN_PROGRESS to the run_prog() flags for ftp installs.

Okay'ed by David Laight.
2003-11-15 12:53:34 +00:00
sekiya 32b29fc3c8 Use new bootloader names. 2003-11-13 08:03:03 +00:00
sekiya 96dd3017c1 Adapt to new config file naming convention. 2003-11-13 02:33:39 +00:00
dsl 5815f1a577 Line up 'Command' and 'Status' strings,
ensure command text doesn't overflow line.
2003-11-11 17:27:13 +00:00
dsl 6a3a05223d Use [*] to match an explicit '*' in shell pattern matches. 2003-11-11 17:25:45 +00:00
perry cd932bc689 resolv.conf:
Make sure that there is a domain set before printing a "search" line.
hosts:
Add domain to the second "localhost" line if there is a domain set.
Add domain to hostname (in addition to bare version) if there is a
domain set.

Patches from William Simpson, PR 21999
2003-11-04 16:27:22 +00:00
perry 8b72ff67e9 rc.conf's "hostname" variable needs to be fully qualified -- change
the code so that it is. From William Simpson in PR 22044
2003-11-04 01:53:28 +00:00
dsl 111e24b1c9 Use shell variables for non-alphanumeric patterns in ${x#pattern} to improve
portability.  If particular solaris ksh barfs on patterns containing ( and ).
Fixes PR 23265
2003-10-29 09:13:51 +00:00
lukem f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
agc c61c0de641 Fix integer/NULL confusion. 2003-10-21 12:02:32 +00:00
dsl 1becc89246 Change RC_CONFIGURED from NO to YES (not YES to NO). 2003-10-19 20:45:27 +00:00
dsl 7ef7a3f227 Checkpoint a load of changes - seems to work ok still.
- rework run_prog() so that the program name (etc) is usually displayed if
  the program generates any output, or terminates with an error.
  Allow arguments to included in single quotes.
  Try to collect console output so it doesn't interfere with curses.
- Add a '*' to the cylinder count if non-integral number of cylinders
  (on disklabel editor)
- Only show partition type for unused partitions.
- Show size including unused space on '+' partition, remove a..z since
  the don't relate to partition IDs (netbsd partition sizes)
- Fix deleting of 'user' partitions - killed size of next ptn.
- Don't default a swap partition is the disk already has one.
- Fix deleting of extended MBR partitions - changed size of ptn 2.
- Show error message if user tries something illegal in mbr editor.
- Default to old diskname (actually disk type - dunno why!)
- Use MI enable_rc_conf() to set RC_CONFIGURED=YES, use a single sed
  command instead of a raft of code playing with files etc.
- Float some menus to just below header text, saves counting and lets
  language variants have different height headers (use y=-1)
- Track whether anything is mounted on /mnt2 better.
- Put more texts into message file.
- Change english prose texts to be more correct.
- Stop french and polish versions core dumping if ptn start/size changed.
- Fix processing logic for saving /etc (action is still borked)
- Do tail-end setup if any sets (eg X) can't be found (but not if you give
  in (yet)).
2003-10-19 20:17:31 +00:00
fvdl 627c2abc03 Remove the 'toolchain' set, since everything is in-tree now. 2003-10-18 14:17:00 +00:00
sekiya 4762dcf39b Bring the sgimips MD code into sync with the rest of the ports. 2003-10-17 10:58:16 +00:00
agc 9f1aac5bb3 Move Jason Downs's code from a 4-clause to a 3-clause licence by
removing the advertising clause.  Diffs provided in PR 22410 by Joel
Baker, confirmed to the board by Jason Downs.

With additional thanks to Jason Thorpe.
2003-10-13 15:36:33 +00:00
agc 61470ee029 Move Mark Nudelman's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22549 by Joel Baker, confirmed
to the board by Mark Nudelman.
2003-10-13 14:34:25 +00:00
lukem 1c33b4e6a4 Overhaul MBR handling (part 1):
<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 04:25:43 +00:00
dsl 98b66fc660 Use new kern.root_partition sysctl to find out whether we are installing
over the current root (ie the one we are booted from).
Remove all the stuff that tried to find this out by other means.
A few other message changes.
2003-09-27 10:47:17 +00:00
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