Commit Graph

1065 Commits

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