Commit Graph

1217 Commits

Author SHA1 Message Date
dsl 9146a4af0b Default to using 2k fragments (16k blocks) on filesystems that are >1GB.
Matches the defaults advertised in the newfs(8).
Perry keeps on asking me to do this :-)
2005-01-20 21:59:35 +00:00
lukem 46123551a0 Only support SMALLPROG_INET6 if ${USE_INET6} != "no".
Part of PR 28994.
2005-01-18 12:30:21 +00:00
snj 127531e055 We prefer "file system" over "filesystem". 2005-01-09 19:58:55 +00:00
snj 7921b65d89 Fix a typo: fileystem -> filesystem. 2005-01-09 06:30:08 +00:00
lukem a3665ef9cf Implement getgroupmembership(3). This is similar to getgrouplist(3), except
that the "int maxgroups" and "int *ngroups" parameters are separated into
two separate parameters which makes it possible to call multiple nsswitch
back-ends and have the results correctly merged.
getgrouplist(3) is now implemented using getgroupmembership(3).

Proposed on tech-userlevel on December 1, 2004.
2005-01-06 15:10:45 +00:00
joff 68490c8820 Add TS7200 kernel for sysinst 2004-12-28 17:56:40 +00:00
hubertf 8e7f054fdb Fix typo, pointed out by César Catrián C. <ccatrian@eml.cc>
on tech-install@
2004-12-15 08:35:17 +00:00
dsl 8c170ab578 Stop md_pre_disklabel falling off its bottom. 2004-11-14 18:36:11 +00:00
he 3629f91d5b Add casts to unsigned char for args to ctype functions. 2004-11-14 13:34:53 +00:00
sekiya e2b7f39b2d Bump up the volume header size to four megabytes; now it's big enough to
contain a GENERIC kernel.

With this commit, NetBSD can now be successfully installed via sysinst on the
IP12 (Personal Iris / Indigo R3k) family of workstations.
2004-11-13 11:49:08 +00:00
sekiya cc1b1e3980 Various tweaks for IP12:
* Add the IP12 kernel set to the list, and make it the default kernel selection
  if we're installing on an IP12,
* Don't install ARCS bootblocks on IP12,
* Install the ECOFF kernel to the volume header for IP12.
2004-11-13 10:26:39 +00:00
dsl c74f8d82e5 Specify --chroot and -h to tar so that it will chroot into the target
filesystem and then follow existing symbolic links in that filesystem.
The choot is required to make absolute links be processed correctly,
and must be done by tar because the program (and input file) do not
exist inside the chroot.
Fixes PR install/5010 and install/8090 (at least)
2004-11-11 22:39:03 +00:00
dsl b1bc1fb2fa Remove precisely the set files when tidying up after an ftp install.
(why this code persists in running 'rm -f' and not just calling unlink()
is rather beyond me....)
2004-11-11 22:30:49 +00:00
dsl 4c23b8b763 Put WARNS=3 in the right place - so it actually affects the compilations 2004-11-11 22:21:53 +00:00
dsl efe04144e4 Get network some interface details by using the relevant ioctls (not
trying to parse the output of ifconfig)
Loop if the user specifies an unsupported media type.
Run ifocnfig to set the media type (any anything else the user typed in)
    before running dhcp to assign an address.
Correctly extract the defualt gateway from output of 'route -n show'
Extract nameserver from resolv.conf without using get_command_out(),
    delete get_command_out().
Fixes (at least) PR install/11880, install/12706
2004-11-11 22:10:54 +00:00
dsl e4ad2fc0f8 Make url_decode() return a pointer to the end of the string, and take a
char * limit (not a length) to simplify buffer overrun avoidance.
2004-11-11 21:36:23 +00:00
dsl 7d6407147b Add support for fetching using http (by specifying http URL to ftp)
Remove a 'Press <enter> to continue' message that was accidently left
in by a previous commit.
Fixes PR/18555 (and a recent discussion on a mailing list)
2004-11-11 21:24:40 +00:00
dsl 855ac51c74 Simplify code that opens file for -f option.
I bet no one ever uses the option anyway!
2004-11-11 20:17:48 +00:00
dsl 9dbf8d89fe Use strtoul() instead of atoi() and cast arg of remaining ctype fns
to unsigned char.
2004-11-11 20:14:02 +00:00
dsl f5a10817b2 need to deconst() a qouted string to compile with WARNS=3 2004-11-11 20:00:40 +00:00
he 81fc849478 For hp300, don't try to install a second-stage boot loader, as none
exists, and use the 'c' (raw) partition for boot code installation
instead of the 'a' partition (which will not work).  This should fix
the problem that newly-partitioned and newly-installed disks will not
be made bootable by sysinst.
2004-11-11 00:19:48 +00:00
jmc ba1ca39c0a Make sure this picks up nbtool_config.h so non-NetBSD builds work 2004-11-10 03:57:23 +00:00
christos 4f7e113b33 Add Solaris mbr id 0xbf. From Larry Lee <lclee at west.sun.com> 2004-11-10 02:41:00 +00:00
martin f1ec8926e5 Changes from various people to the german translation, as discussed
in PR install/27281.
XXX - Output is not correct since sysinst does not set the proper LC_CTYPE
yet (which happens to not affect umlauts, but sharp-s (0xdf))
2004-10-21 12:14:21 +00:00
dsl 5f64a0e24d Fix equivalent of PR/26917 - this code was stolen from fdisk.
(similtaneus eqns to determine bios geometry from mbr entries could divide
by zero)
2004-10-20 19:36:23 +00:00
dsl 300c56aef2 Add a newline to the end of the 'syslog' output when writing it to stderr.
(affects output of dhclient when run from sysinst)
2004-10-17 11:57:14 +00:00
dsl 81c71a86b4 Make compile with WARNS=3 2004-10-16 13:20:10 +00:00
dsl 8cc827516a Remove used variable 2004-10-16 12:52:30 +00:00
gavan 0560d8b947 Initial import of iyonix port.
The Iyonix is a desktop machine from Castle Technology, based on a 600MHz
XScale[tm] 80321 processor.

* Uses the bootloader from NetBSD/acorn32, which is now 32-bit compatible.
* Currently boots multiuser with a serial console.
* Device support is not yet complete.

With help from abs.
2004-10-13 23:28:34 +00:00
dsl 64cdb08d62 Run the new copy of /etc/postinstall, not the one that happens to be on the
users system already.
Amongst other things this should ensure that MAKEDEV get updated.
(currently untested...)
2004-09-12 19:12:45 +00:00
chs c2472e10b2 rename a global variable so that it doesn't collide with a libcurses function
when both are present in a crunched static binary.  part of PR 26458.
2004-09-01 01:46:56 +00:00
hubertf ce610d90f3 CD-ROM -> CD-ROM / DVD
While there, capitalize list of install media (nfs->NFS, ...).
Tested on 2.0.
2004-08-20 21:23:08 +00:00
dsl 68444e9859 Don't require <enter> to by typed after setting root's password 2004-08-17 17:12:26 +00:00
dsl f372710462 Add a couple of blank lines before the 'Creating devices' message 2004-08-16 21:04:08 +00:00
dsl 29306cabe7 Default to input in MB for all architectures (MB are cylinder aligned).
Move info about cylinders to the 'ask for units' menu.
  (translations need checking, done by cutting sentences)
Stop i386 always asking for units.
Use BIOS cylinders for MBR and disk cylinders for the disklabel.
  (code intended to do this, but got it wrong...)
Mark some menus as 'sub menu' or MC_SUBMENU so that the screen underneath
  is saved.
Add GENERIC.MPACPI to i386 menu.
2004-08-14 16:06:36 +00:00
dsl e0683ac0f3 Kill two more global variables, bsize (bios disk size) was never used
and bcylsize (bios cylinder size) can be calculated in the one place
it is needed.
The ask_sizemult() call will go once I decide what to to with the
(slightly useful) explanatory text about cylinder alignment.
2004-07-17 19:36:59 +00:00
dsl 65a0b724f8 'Warp' menu selection to 'Exit' when a timezone is selected.
Add a line-break to the TZ menu title - has to look better that way.
2004-07-17 11:28:16 +00:00
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