Commit Graph

1026 Commits

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