Commit Graph

1674 Commits

Author SHA1 Message Date
christos
00d7813e05 use getfstypename from libutil. 2012-01-05 20:21:35 +00:00
christos
ede9eac481 - avoid dereferencing junk if fstype is out of bounds.
- kill mountnames since it is not used.
2012-01-05 19:43:59 +00:00
riz
35e4abfb48 Fix typo in comment. 2012-01-01 23:26:22 +00:00
he
abbf8bf0e6 Two more instances which need "return 0;" to fix the build. 2011-11-07 14:18:51 +00:00
he
e808022f5e Return 0 from md_pre_mount(), which is otherwise empty here, so that
this builds again.
2011-11-07 12:40:26 +00:00
martin
7a8c1b579b Add a new hook, md_pre_mount(), that is called after preparation of
the target filesystem, but before mounting it. Use this on sparc64
to install the primary boot block, but install the secondary boot
(/ofwboot) later.
This allows sysinst to run at securelevel 1 (as long as we don't do an
upgrade install on the hard disk we booted from).
2011-11-04 11:27:00 +00:00
martin
e3288b80f0 If we are not building SMALLPROG, there is no need to strip out INET6
support.
2011-11-01 09:26:37 +00:00
jakllsch
a7f0be9651 As both of the "ns-wide.wide.ad.jp" and "light.imasy.or.jp" IPv6 resolvers
now refuse my queries, replace them with "google-public-dns-a.google.com"
and "google-public-dns-b.google.com".
2011-10-30 00:30:56 +00:00
mbalmer
24e4901256 There is no doubt whether whether should have a 'h' after the 'w'. 2011-10-17 16:35:21 +00:00
joerg
6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
christos
c719768729 fix fprintfs with no format strings. 2011-09-14 12:35:19 +00:00
joerg
ef4c662073 -Wno-format-nonliteral for msg_defs.c 2011-08-25 17:39:58 +00:00
christos
d30a63af7f fix non-literal format string 2011-08-25 16:54:58 +00:00
christos
572b078924 document non-literal format string use for many md files 2011-08-25 16:47:16 +00:00
kiyohara
3137e2afff bebox not support md_post_newfs() and md_post_disklabel() now. Change null-func. 2011-08-25 15:42:33 +00:00
christos
b182f6a794 document non-literal formats 2011-08-23 10:26:07 +00:00
phx
1cc96bc3f9 The ofppc generic kernel has tmpfs, so use it. 2011-08-21 15:21:46 +00:00
phx
4875a7e930 Use PRIi64 for printing tmp_ramdisk_size, which is a daddr_t (64 bits).
This fixes the size of the ramdisk file system being 0 on big endian
systems.
2011-08-21 15:06:41 +00:00
phx
fd263523fc Unmounting /targetroot in md_post_newfs() is not needed.
Use target_prefix() instead of /mnt2 in md_post_extract().
2011-08-21 13:40:08 +00:00
wiz
3de59c619c Improve a comment. For Snader_LB. 2011-08-16 18:28:41 +00:00
wiz
e6edecb609 Fix typo in comment, from Snader_LB. 2011-08-16 13:58:21 +00:00
tsutsui
44631bea4d Some style nits. 2011-07-16 23:49:10 +00:00
tsutsui
bf2202e183 Revive NetBSD/luna68k.
Even after almost a lost decade since NetBSD/luna68k was
switched to using ELF format by default back in 2001,
actually only one fix (bus.h) is required for a GENERIC kernel itself
to get multiuser login: prompt on a real hardware.  Hurrahhh!!!

Demonstrated with a working Xorg mono server on the NetBSD booth
at Open Source Conference 2011 Kansai @ Kyoto:
 http://www.ospn.jp/osc2011-kyoto/

"Very impressed," commented by Tomoko YOSHIDA,
Program Committee Chair of the Conference,
and some other OMRON guys.

Special Thanks to Tadashi Okamura, for providing
a working SX-9100/DT "LUNA" for this mission.


Changes details:

sys/arch/luna68k/include/bus.h
 - handle stride properly even on multi and region ops for MI spc(4)
 - also fix stride handling of (currently unused) 2 and 4 byte ops

sys/arch/luna68k/conf/Makefile.luna68k
sys/arch/luna68k/conf/kern.ldscript.head
sys/arch/luna68k/conf/kern.ldscript.tail
 - build a faked a.out kernel using elf2aout(8) tool
   and a linker script derived from cats and shark
   for the LUNA firmware that loads a.out binary directly
   via network or from a UNIOS partition on a local disk

sys/arch/luna68k/dev/omrasops.c
sys/arch/luna68k/dev/omron_rfont.h
 - use the original OMRON font derived from 4.4BSD-Lite/luna68k
   rather than gallant19 which is used on Sun workstations
   (XXX omrasops.c should be rewritten to use generic wsfont(4))

distrib/luna68k/*
distrib/utils/sysinst/arch/luna68k/*
etc/etc.luna68k/MAKEDEV.conf
etc/etc.luna68k/Makefile.inc
sys/arch/luna68k/conf/INSTALL
 - build a ramdisk based INSTALL kernel with sysinst(8) for luna68k
 - also build an installation iso image for luna68k

sys/arch/luna68k/conf/GENERIC
 - enable SYSVSHM (and other SYSV*) options for Xorg server

More Xorg changes (which need some more cleanup) and
isiboot.c fixes will come soon.
2011-07-16 15:52:20 +00:00
mrg
008b45d2d8 avoid a "multi-level non-const cast" warning from GCC 4.5. 2011-07-06 01:19:45 +00:00
mrg
82112210da fix check against errstr to use the right variable. GCC 4.5 rightly
complained that err (the libc function) is always not NULL.
2011-07-06 01:18:08 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
mrg
75e42fa7da remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
2011-06-20 07:43:56 +00:00
tsutsui
326d8524e2 Add -DNO_PACK_SUPPORT and -DNO_XZ_SUPPORT to CPPFLAGS to omit
extra algorithm not used in installer.

XXX: should we use positive options in usr.bin/gzip/Makefile?
2011-06-19 01:25:35 +00:00
nonaka
665e83d2f3 MBR magic exists at the beginning of 'a' partition, BPB is cleared.
Avoid to detect msdosfs incorrectly at boot time.
2011-06-11 11:43:23 +00:00
joerg
56436077b3 Use proper format strings. 2011-05-30 14:20:48 +00:00
joerg
e4a1ce5cf6 Declare mmsg as string constant, not as a pointer to a string constant.
This avoids format strings warnings.
2011-05-30 14:20:19 +00:00
christos
fe1bab6e3f a little better. 2011-05-20 02:12:39 +00:00
tsutsui
aabb34a38b - WARNSfy
- KNF, ANSIfy, remove __P(), misc cosmetics
2011-05-19 22:23:12 +00:00
tsutsui
a628ef7c5c - WARNSfy
- KNF, ANSIfy, misc cosmetics
2011-05-19 22:14:15 +00:00
tsutsui
84af88e97a - WARNSfy
- KNF, ANSIfy, misc cosmetics

note: this is small shell, not secure shell.
2011-05-19 22:12:35 +00:00
martin
1f1f76a438 Add an "exitstring" to the utility menu, so translations can provide
proper strings (like: "back to main menu"). For most translations set
to plain "Exit" (like it used to be) for now - natives, please fix!
2011-04-17 12:33:42 +00:00
martin
99f3e96716 Make all curses/$TERM related failures exit with error code 4 (everything
else in here only exits successfully or with error 1), so we can react
accordingly in the surrounding script. Part of fixing PR 44738.
2011-04-08 15:53:44 +00:00
mbalmer
3d6299dc28 Remove the advertisement clause from files copyrighted by Piermont Information
Systems, with the consent of the copyright owner, Perry E. Metzger.
2011-04-04 08:30:12 +00:00
phx
2511250d06 Remove debugging output. 2011-03-26 22:16:33 +00:00
martin
02bd0cacbd German spelling rules have changed - remove some sharp-ss accordingly. 2011-03-26 16:30:20 +00:00
riz
8058e4e3ef Fix pasto/sed errors, so acorn26/acorn32/alpha/bebox
builds can complete.
2011-03-25 22:56:34 +00:00
martin
2d9a4c8a05 Split "md_hello" meesage (wich was abused on most archs to tell the user it
is safe to remove a "floppy" now) into two parts: md_hello to tell MD
specific informations (empty on most archs), and md_may_remove_boot_medium,
which is only added if md_may_remove_boot_medium() says so - by default only
say so on non local / filesystems, and never if / is on CD/DVD.

Fixes first part of PR 44738.

XXX - I'm not a linguistic genious nor semantic mind reading sed process,
please fix any fallout if you are a native speaker of an affected language
and/or user of a port I did not test. Send-pr if in doubt.
2011-03-24 22:01:13 +00:00
phx
c04d0174cc Use sysctl-node machdep.prodfamily to decide about the kernel to install and
to fix the console speed in /etc/ttys.
2011-03-20 12:43:40 +00:00
adam
561fc3a751 Added missing Polish translations 2011-03-08 11:24:28 +00:00
matt
10df5a1be5 Deal with 64 bit versions of kernels 2011-02-20 08:26:08 +00:00
joerg
3cb4a8235c Update Spanish translation. From Riastradh on IRC 2011-02-01 01:43:15 +00:00
joerg
35fb1ac585 Introduce a new option for all base sets without X11.
From jmcneill with translation help from Daniel Horecki.
2011-02-01 01:42:07 +00:00
pooka
380d30c783 make this build on non-emips again 2011-01-26 10:58:19 +00:00
pooka
5f7e80a834 Add support for the Extensible MIPS ("eMIPS") platform. The
NetBSD/emips port runs on Xilinx and Beecube FPGA systems and the
Giano system simulator.

eMIPS is a platform developed at Microsoft Research for researching
reconfigurable computing.  eMIPS allows dynamic loading and scheduling
of application-specific circuits for the purpose of accelerating
computations based on the current workload.

NetBSD eMIPS support for NetBSD 4.x was written at Microsoft Research
by Alessandro Forin and Neil Pittman.  Microsoft Corporation has
donated full copyright to The NetBSD Foundation.

Platform support for eMIPS is the first part of Microsoft's
contribution.  The second part includes the hardware accelerator
framework and will be proposed on tech-kern soon.
2011-01-26 01:18:43 +00:00
joerg
840ff94b9f Fix the weak aliases to match the libc version and not leave unresolved
symbols around.
2011-01-12 23:34:00 +00:00
pooka
3c577ba703 Deal with crunch the standard way. 2010-12-15 11:22:41 +00:00
hannken
4d6cf788fb Make the definition of CRUNCHOPS independent of SMALLPROG_INET6 / USE_INET6.
Distrib/sparc64/instfs now builds again.
2010-12-14 17:07:08 +00:00
pooka
a74a091f67 use CRUNCHOPS for a crunched prog 2010-12-13 21:47:32 +00:00
pooka
e8de1d91d0 be a happy crunch build 2010-12-13 19:19:10 +00:00
pooka
8603230f7e Define PROG here since Makefile.inc no longer defines it. 2010-12-13 17:35:31 +00:00
jmmv
c3babaca78 Remove password cipher selection as discussed in current-users@.
Users who really really really want to change the default setting can
continue to change their cipher algorithm right after a clean install
by modifying /etc/passwd.conf and regenerating the root password if
previously set by sysinst.
2010-12-04 14:57:56 +00:00
tsutsui
1e8199a6ea Add dumb code to select an appropriate kernel set to be installed
per running INSTALL kernel name taken from sysctl kern.version.

XXX: on all arm ports, sysctl hw.cpu_model returns a processor name,
XXX: not machine model as mentioned in <sys/sysctl.h>.
2010-09-04 01:23:25 +00:00
martin
f5c8ee89a1 Re-enable LFS as /, now that booting from it works with the sysinst default
FS parameters.
2010-06-25 10:21:50 +00:00
phx
7031fa6dfc Automatically adjust the console speed to 57600 in /etc/ttys for KUROBOX
kernel.
2010-06-13 15:32:00 +00:00
phx
16b097908c Adapted sysinst and installation docs for modern NAS boxes. 2010-06-09 17:37:23 +00:00
tnozaki
068f43028d fix build breakage by multiple definition of __mb_cur_max. 2010-06-08 17:12:32 +00:00
tsutsui
3a09116b96 Sync with md.h rev 1.17:
> convert sparc64 to MULTIPROCESSOR kernel by default, and introduce
> s/MP/UP/ kernels were otherwise in place.
2010-05-11 09:46:46 +00:00
tsutsui
6ea92ed1bd Add WZERO3 kernel to MD kernel set menu for
possible newer users of these smartphones:
http://www.willcom-inc.com/ja/lineup/ws/004sh/
http://www.willcom-inc.com/ja/lineup/ws/007sh/
http://www.willcom-inc.com/ja/lineup/ws/011sh/
etc.

XXX: sysinst/util.c:init_set_status() calls md_init_set_status()
XXX: to allow MD hook choose the right kernel, but it can do nothing
XXX: because set_status[] was changed to static. Is it okay to export it?
2010-05-10 16:33:45 +00:00
tsutsui
30fe5a6c65 Remove non-English translations from ews4800mips sysinst.
I don't think there are any EWS4800 users outside Japan.
2010-05-04 13:33:13 +00:00
martin
22ccb73099 Prevent a -ve int -> uint32 underflow, noticed by joerg.
If a partition ends up 0-sized, set it to FS_UNUSED to avoid later warnings.
2010-05-03 23:04:12 +00:00
tsutsui
5b534b475e Add sysinst(8) for hpcsh.
Mostly taken from hpcsmips, but no non-English translations.

Tested on HPW-50PA.
2010-05-03 14:14:35 +00:00
tsutsui
b3d183afc6 There is no bootable floppy on hpc ports.
XXX: no translations
2010-05-02 16:35:09 +00:00
tsutsui
8fc25fb037 Remove unused messages. (mostly pulled from i386?)
XXX1: I don't think it's worth to keep bad144 for modern flash devices.
XXX2: Should we still maintain non-English translations without a maintainer
      even after we removed www translations?
2010-05-02 14:00:44 +00:00
tsutsui
d9f9bedcec hpcarm doesn't have GENERIC or TX3912.
Use IPAQ and JORNADA720 instead in messages per md.h.

XXX1: hpcarm seems to have more kernels.
XXX2: hpcarm doesn't have a common INSTALL kernel so
      choosing a kernel set during sysinst doesn't make sense.
2010-05-02 13:52:00 +00:00
tsutsui
6dda4ee2ed Fix pasto in comment. 2010-05-01 11:13:01 +00:00
martin
a08b65f1f7 Oops - last change could lead to crashes - when not asking for a geometry,
use the default one.
2010-04-19 21:12:51 +00:00
martin
0748c0df89 Do not ask for a "bios geometry" if we can not match the device to a bios
known device - it's most certainly a don't care.
2010-04-19 20:35:23 +00:00
martin
a00365f163 Fix a varargs argument type mismatch on 32bit archs - change format to
explicitly use %lu and cast the passed value accordingly.
2010-04-19 19:22:41 +00:00
martin
2a48105b23 Tune a message 2010-04-19 19:16:11 +00:00
martin
7824e94c72 The 16bit "bootmenu valid" magic is slightly week, collisions have been
seen in the wild. So, before accepting arbitrary strings from there,
validate at least slightly and ignore if the entries are not properly
0 terminated or contain controll characters.
2010-04-15 22:55:15 +00:00
nonaka
238763f6ce Added support following boards.
- AlphaNet MS104-SH4
- TAC T-SH7706LAN Ver.3
- TAC T-SH7706LSR Ver.1
2010-04-06 15:54:29 +00:00
martin
2116ace6a7 Add a NO_LFS define to force support for LFS in sysinst off, even if
the install media provides the utilities. Set this for sparc64 for now,
since the bootblocks don't deal with the default LFS parameters used
by sysinst.
2010-04-05 22:53:02 +00:00
christos
84ea502702 handle ctime returning NULL. 2010-04-02 15:34:16 +00:00
martin
9174b80259 Do not bother to ask the user for CD details (like device name or path
on the CD) if we can find CDs (i.e. media, not drives) automagically
and check the standard paths on it.

If we find multiple CDs, offer a menu to select showing the volume
name. If something goes wrong, fall back to the manual input method.

In typical installs this makes us just proceed with extracting the sets
after selecting "install from CD/DVD", w/o any further interaction.

As a side effect fixes PR 43012.
XXX new messages need translations.
2010-03-30 20:09:25 +00:00
mrg
4b35b5643b convert sparc64 to MULTIPROCESSOR kernel by default, and introduce
s/MP/UP/ kernels were otherwise in place.

in my testing on a U60, i couldn't really notice any different in
speed, but we need testing on a U1/U5/U10 systems to be sure that
GENERIC.UP isn't necessary.

for sparc64, this is some what required as USIIIi systems have the
memory controller on the CPU, and unless the CPU is spunup, a UP
kernel will not function on these systems.  (we obviously need to
join the NUMA-for-netbsd camp now, too! :-)


this should enable the installer to function on all systems that we
support, but also give the option for people to install GENERIC.UP
on their single-cpu systems if they choose.


XXX: i haven't actually tested sysinst with this, but i have built
both sparc and sparc64 release iso's successfully with this change
(sans having to comment out kern_ctf.c.)
2010-03-13 08:36:06 +00:00
abs
6c6ab6a995 Relegate edlabel to use in extremely memory constrained install
ramdisks and prefer disklabel elsewhere.
Based on discussion on affected port lists (port-sparc port-sparc64
port-sun3 port-sun2 port-atari port-mvme68k).
All listed ports plus amd64 test built after change
2010-03-10 23:13:09 +00:00
martin
fef6bd65fd Enable dynamic sizing of the default swap partition 2010-02-28 22:42:44 +00:00
wiz
95c5212343 Consistently call the file system "ext2". 2010-02-21 13:28:12 +00:00
martin
c9c80e594c Since we call /usr and /var with absolute paths, lets do that for /tmp
as well.
2010-02-18 12:21:52 +00:00
martin
7171f90002 We can now boot from FFSv2, so offer it + even use it as a default. 2010-02-17 16:11:00 +00:00
martin
c82870bc88 eeh says we should not enable fsck_lfs on lfs partitions 2010-02-17 16:09:52 +00:00
roy
98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
ahoka
291052535a Make it proper KNF as it should have been done in my previous commit. 2010-02-01 00:39:03 +00:00
ahoka
57c158572e Remove duplicate sys/sysctl.h inclusion and put includes in alpabetic
order.
2010-02-01 00:06:18 +00:00
jmmv
296908ed7b Perform in-place replacement of the cypher type instead of renaming the
passwd.conf file to passwd.conf.pre-sysinst file and creating a new one
from scratch:

- This is consistent with all other edits of configuration files performed
  by sysinst.  (E.g. in-place changes of rc.conf.)

- This eases the upgrade of the system to a newer set of files because the
  diffs presented by etcupdate are easier to read.

No objections in tech-install@.  Tested installing NetBSD/amd64.
2010-01-27 11:02:03 +00:00
wiz
7d9fce090d Only a return value below 0 denotes an error in open(2). Found by cppcheck. 2010-01-17 22:48:50 +00:00
wiz
af7d8656df Close file when finished with it. Found by cppcheck. 2010-01-17 22:47:18 +00:00
martin
faac5a2278 Avoid adding -Os to CFLAGS if DBG is set and contains -g.
This helps gdb a lot when compiling local debug versions of sysinst.
2010-01-13 07:52:38 +00:00
martin
1aca3c1cd8 Use the proper structs for ioctls to fetch network configuration.
Might fix PR 42436.
2010-01-13 07:48:57 +00:00
dsl
23ee525d3d Change most of the variables that hold disk sector number to be (at least)
uint32_t. Might make sysinst work on disks between 1TB and 2TB.
Not actually tested because I don't have a big disk.
Hopefully I haven't broken the small disk case!
Set WARNS= 4 so that comparisons of signed and unsigned block numbers
are trapped.
2010-01-02 21:16:46 +00:00
dsl
7dd4a9773c Fix another couple of signed v unsigned comparisons of disk block numbers. 2010-01-02 20:54:46 +00:00
dsl
8f503a6d66 Fix some of the sign-compare fubar. 2010-01-02 18:06:57 +00:00
dsl
6b52b2b9be Sanitise whitespace to minimise the differences between these files. 2010-01-02 17:15:07 +00:00
nonaka
5a5f67b6bf "Full installation" should install kernel. 2009-12-22 11:14:33 +00:00
ahoka
efa829b8a6 Make SHA1 the first option when selecting cyphers, so one without basic
understanding of cryptography won't choose DES as the default on his system.

The default option should be the best possible in case the user is unsure.
2009-12-16 16:03:26 +00:00
pooka
d6224f4507 Remove support for NetBSD/playstation2. 2009-12-05 16:29:10 +00:00
he
9fc5e76860 Use ${.CURDIR} when referring to a relative source directory. 2009-11-28 22:13:34 +00:00
tsutsui
64dbdb6579 Don't try installboot(8) if offset of PART_A is not zero.
As man page says, installboot(8) is required only OpenFirmware 1 and 2
machines and even on such machines the root partition has to be at the
beginning of the disk to make installboot(8) work.

On OpenFirmware version 3 machines, the strategy provided by
installboot(8) doesn't work, and they need to have an extra
native partition (HFS or FAT16) which can be recognized by
the newer firmware to put a loadable bootloader.
If PART_A has some offset, we can assume the disk is partitioned
for a machine with OF3, which does't require installboot(8).

Eventually, we should provide an independent partitioning method
for OpenFirmware 3 machines (fdisk MBR partition + FAT16 partition
for ofwboot.xcf as OpenBSD does), but it may require some new API
to get OF version in sysinst.
2009-11-23 13:25:02 +00:00
stacktic
f0f9215e04 Fixed a few french messages - patch from Marylène Ysmal. 2009-10-24 14:41:57 +00:00
stacktic
179b5354fd Fixed a few french messages - patch from Marylène Ysmal. 2009-10-24 12:47:30 +00:00
snj
febb7cce65 Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder). 2009-10-21 23:12:09 +00:00
snj
550147bd6a Remove 3rd and 4th clauses in christos' license. OK christos. 2009-10-21 01:07:44 +00:00
stacktic
352ae111a3 Corrected messages. 2009-10-18 19:31:53 +00:00
ahoka
ff77aac2d4 Give the option to use tmpfs for /tmp in sysinst instead of the older
mfs on i386 and amd64. Should be enabled on other platforms with reliable
tmpfs too.
2009-10-18 12:09:48 +00:00
joerg
29e22ac027 Allow setting an empty base directory. FTP server like tnftpd do not
allow ftp://foo//bar and similar URLs.
2009-10-16 19:01:03 +00:00
snj
f01642e2c0 - Don't extract xetc to /, but rather in /.sysinst (like etc) so that we
don't blow away existing config files.
- Wait until all sets have been unpacked to run postinstall.  Previously
  we ran it after extracting etc, which meant that /var/db/obsolete/ was
  not fully populated.
2009-10-09 21:11:31 +00:00
snj
6a8c1d0dab /usr/X11R7/lib/X11/xkb/symbols/pc went from a directory to a file, so on
upgrades we need to remove it before extracting the xbase set, otherwise
we end up in a puddle of suck.
2009-10-08 06:41:43 +00:00
martin
b7d9979e0d When creating /etc/fstab:
for the first swap partition use type sw,dp instead of sw, so dump device
gets configured correctly if swap is not on the second partition.
Fixes PR install/42148.
2009-10-03 12:00:00 +00:00
jmcneill
c197f0ba14 In get_descr(), initialize dd_descr to an empty string before probing
ATA and SCSI identification. Fixes issues with xbd and raid.
2009-10-01 10:41:03 +00:00
abs
fb1870e986 correct a comment about disktab 2009-09-20 22:43:00 +00:00
abs
eff3a12f1c defs.h:
- Re-order the md_*() definitions so they are in the order called
- Add some comments
- Remove obsolete md_set_no_x() definition
- Remove md_copy_filesystem()
- #if defined(DEBUG) declare backtowin(void) to avoid scattering
  externs in various md .c files

mbr.[ch]:
- Add a set_bios_geom_with_mbr_guess() which can be called by all
  the non x86 ports rather than copying the same code into arc,
  bebox, cobalt, evbmips, evbppc, hpcarm, hpcmips, landisk, ofppc,
  prep, sandpoint, and zaurus md.c

install.c:
- Remove now unnecessary call to md_copy_filesystem()

upgrade.c:
- Move move_aout_libs() here, and put under #ifdef AOUT2ELF
- Rather than having *every* md_update call wrefresh(curscr),
  wmove(stdscr, 0, 0), wclear(stdscr), and wrefresh(stdscr),
  move them here

arch/acorn26/md.c:
- Just include arch/acorn32/md.c, but add a note there warning
  about this, and while here add a note to i386/md.c that it
  is included by amd64

arch/*/md.c:
- By all means "Vive la difference", but we have 38 pairs of md.[ch],
  and they could not even agree on the order in which to list the
  md hooks, let alone formatting. Sort the md hooks to match the
  (now sane) order in def.sh, and try to normalise the formatting
- Also copy across some function level comments everywhere
- Ensure functions only used inside each md.c are defined as static
- Remove some now unused functions
- Some files had enable_rc_conf in #ifdef DEBUG. Add this to all
- bebox, evbppc and sandpoint were still playing broken games with
  copying the booted ramdisk to the target disk, the primary result
  of which was just to slow things down and ensure the target system
  lost the .profile extracted from the sets. Just kill this.
- For some ports md_update() called endwin(), and in others not.
  Take a cure from i386/amd64 and a few other more active ports,
  and update everything to match (no endwin())
- In a couple of cases correct port names in comments
- ANSIfy some lingering old style functions
- Consistently use "return 0;" rather than "return (0);"

More of the mbr code should be abstracted, along with the
get_ramsize() / set_swap() logic, but this is (more than)
enough for one day...

sysinst built for all ports but only runtime tested on amd64 & i386
2009-09-19 14:57:27 +00:00
abs
961dc58afe Add cobalt hp700 hpcarm landisk & ofppc to ALL_MACHINES list 2009-09-19 13:33:17 +00:00
jnemeth
d539a2c691 Install the new modules.tgz set. 2009-09-07 02:31:53 +00:00
martin
92a844a416 Translate english rev 1.59 (mention USB boot device in addition to floppy) 2009-08-24 09:46:24 +00:00
jmcneill
3f1e5d911a Get rid of the 'select extraction verbosity' menu. 2009-08-23 21:16:16 +00:00
jmcneill
004c1bcc7f Print ${MACHINE} in the welcome message. 2009-08-23 20:58:05 +00:00
jmcneill
b6cec36cdd Mention USB media as well as floppy disks. 2009-08-23 20:57:40 +00:00
jmcneill
ae6bbc2b13 PR# install/41925: sysinst find_disks() should display more than just
the device name

Try ATA/SCSI identify commands and when successful, use the model information
along with the disk size when creating the 'Available disks' menu.

Instead of having a list of disks (wd0, wd1, sd0) the menu now looks like:

  Available disks

 >a: wd0 (977M, SanDisk SDCFB-1024)
  b: wd1 (233G, FUJITSU MHY2250BH)
  c: sd0 (246M, LEXAR JUMPDRIVE ELITE)

ok martin@
2009-08-23 18:43:33 +00:00
tsutsui
cadbb82928 Remove existing gzipped bootloader before installing new one
for upgrade install.
2009-08-23 13:36:54 +00:00
pgoyette
f6f3b4be8a Repair more fallout from the exec_aout.h change.
No guarantee that these are the "right" things to do, but they do allow
building of port-amd64 again.
2009-08-16 17:12:47 +00:00
snj
8af0e5d28c It's "let's" 2009-08-11 19:15:30 +00:00
sborrill
5b465c4fb9 Fix build by explicitly narrowing dlsize to an unsigned 32-bit quantity as
supported by disklabel.
2009-05-26 20:29:04 +00:00
nonaka
e72bdd20c7 >Support drives over 1TB in size (i.e. stop errors like drive is -654343MB in size).
>Error if drive is over 2TB in size (and thus over the disklabel limit).
2009-05-16 10:40:16 +00:00
sborrill
943355d5b7 Support drives over 1TB in size (i.e. stop errors like drive is -654343MB in
size).
Error if drive is over 2TB in size (and thus over the disklabel limit).
2009-05-14 16:23:38 +00:00
tsutsui
c77a6f3174 Allow UFS2 (ffsv2) for root parition. 2009-05-03 11:33:05 +00:00
tsutsui
ba5d4af029 Add UFS2 root and boot support. 2009-04-22 17:21:47 +00:00
tsutsui
398b5dccb5 Install MBR bootcode (/usr/mdec/mbr) after write_mbr(). 2009-04-22 16:53:15 +00:00
tsutsui
5cca2f6bf3 Remove a bogus (debug?) message. 2009-04-22 16:51:02 +00:00
tsutsui
c4ea44d4b8 Make No_Bootcode message a bit more verbose.
XXX: needs translations
2009-04-22 12:38:10 +00:00
tsutsui
134814a80f Add UFS2 root and boot support. 2009-04-22 12:37:01 +00:00
tsutsui
62e5412d38 Make sure to free(3) memory allocated by asprintf(3) in bootxx_name(). 2009-04-22 12:35:46 +00:00
joerg
4764c235e5 Change ramdisks from dhclient to dhcpcd and add corresponding glue to
sysinst. For amd64, the crunchgen binary shrinks by 150KB uncompresssed,
60KB compressed.
2009-04-07 11:49:16 +00:00
tsutsui
a4063088f7 Improve UFS2 root handling on sysinst:
- add HAVE_UFS2_BOOT define on ports which have UFS2 capable loader
- reject UFS2 for root file system on ports !HAVE_UFS2_BOOT
- add a MI function to get bootxx name from root file system type
  per MD defines and remove md_bootxx_name() from arch/i386/md.c,
  so that alpha can use bootxx_ffsv2 for UFS2 as well as x86

Tested on i386 and alpha with FFSv1 and FFSv2, and also
tested on vax (on simh) for !HAVE_UFS2_BOOT case.
de translation is provided by martin@.

No objection on tech-install, and "move forward with it" from perry@.

XXX1: not tested on all ports, more ports might/could have UFS2 root support
XXX2: no es, fr, and pl translations, even en message should be improved
XXX3: alpha has a fixed en message without MSG
2009-04-07 10:45:04 +00:00
tsutsui
d5a18ca183 Remove redundant call of check_partitions(). 2009-04-05 22:22:27 +00:00
tsutsui
6084f8a077 Remove unused check_partitions().
The similar check is done in check_one_root() in label.c.
2009-04-05 02:18:41 +00:00
tsutsui
df90698b99 - introduce machine dependent DEFAULT_UFS2 and HAVE_UFS2_BOOT flags in md.h
- use those flags to change default ffs type, rather than adding
  __HAVE_UFS2_BOOT in <machine/types.h>

Okay'ed by martin@, briefly tested on i386.
2009-04-05 00:50:51 +00:00
ad
23710c7d9a Back out the / change. This is an incorrigible. Any change to that would
make it more user friendly is likely to (a) trigger complaints from elitist
morons (b) overflow RAM disks everywhere.
2009-04-04 11:34:09 +00:00
ad
3e31e5dff7 - Improve on previous.
- If no /usr and the disk still has free space, give it to /
2009-04-04 11:24:24 +00:00
ad
13934cdea8 Calculate swap size dynamically if DEFSWAPSIZE == -1. Default to RAM size. 2009-04-04 11:04:28 +00:00
ad
7775c99317 Assume that extended int13 support is available if we have no diskinfo. 2009-04-04 11:03:24 +00:00
ad
3aac575430 - Default to UFS2 if the platform can boot from it.
- Default logging on.
2009-04-04 10:38:00 +00:00
reed
f480b2a774 Spelling fix in some messages.
(Note that this is still English examples even in other language messages.)
2009-03-06 19:05:01 +00:00
hubertf
638a147525 * Remove 2001:240::1 on request from IIJ
* Update the remaining two DNS servers to at least have the address
   match the name. Resolving is untested.
2009-02-27 22:51:33 +00:00
ad
23267ecce2 Put back /kern, apparently xen uses it (and probably scripts too). 2009-02-23 23:12:24 +00:00
ad
a2517242b7 - Mount /proc automatically. We have fixed a ton of bugs, it's needed for
Linux compat, and we are planning to kill ptrace and make the debugger
  use /proc instead.

- kernfs is hosed at the moment and nothing appears to rely on it any more,
  so disable it. (IPsec did at one point, IIRC).
2009-02-23 22:51:47 +00:00
ad
86df8239c4 Remove softdep menu item. 2009-02-22 11:21:55 +00:00
abs
c0b7d45df7 Fix over enthusiastic length limit in SUPPORT_8_3_SOURCE_FILESYSTEM block 2009-02-11 20:33:14 +00:00
abs
175e4bfbdf Add -DSUPPORT_8_3_SOURCE_FILESYSTEM option - currently *only enabled on atari*
which if a set file cannot be found will attempt to truncate down to 8.3 and
check again. Required for install with sets from GEMDOS filesystem.
2009-02-06 00:24:29 +00:00
martin
02c69332a0 PR install/40506: do not display international characters before we have
selected a proper locale.
2009-01-28 16:31:49 +00:00
abs
f59480d8df Switch evbpcc sysinst and install notes to referencing WALNUT/OPENBLOCKS266
kernels, rather than (nonexistant) GENERIC

from KIYOHARA Takashi
2009-01-25 17:48:05 +00:00
abs
1f13a9d79a - Sync atari sysinst install kernel list with reality:
- BOOT reanamed to SMALL030
  - ATARITT and FALCON were missing
- Update release notes to kernel list and also clarify Milan kernels
2009-01-24 21:20:22 +00:00
tsutsui
52275243c5 WARNS=1 2009-01-24 13:58:21 +00:00
tsutsui
4f5defc8b9 Remove the \n and tab from the __COPYRIGHT() strings to appease asm warnings. 2009-01-24 13:43:21 +00:00
he
c35e4870f2 Add some more weak aliases for versioned library calls, to prevent
that we try to link in objects from libc.a where we also provide our
own replacements here, leading to multiple definitions during linking.

OK'ed by christos@
2009-01-16 14:48:04 +00:00
tsutsui
ccd5483536 Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.

Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
2009-01-14 10:49:37 +00:00
tnozaki
52ed7b035f Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@, snj@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
  new locale-db implementation using citrus_db backend,
  see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
  internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].

[tools]
- mklocale(1): add new option ``-t'' that generates new style
  LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().

[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
    en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
    zh_CN.eucCN -> zh_CN.GB18030
    and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
  for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
  i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<

old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.
2009-01-02 00:20:18 +00:00
martin
827c9991f2 Set an apropriate locale depending on the selected language.
This does not realy change anything in the crunched version, but helps
debugging foreign languages and will magically start working once we
un-castrate locales in the crunched environment.
2008-12-21 11:02:41 +00:00
ad
c967a6ed32 Put the log files into /tmp. 2008-12-01 10:22:36 +00:00
sborrill
8e03e5a4c8 Add cut-down getpwent_r() to join existing getpwent() and friends. This
fixes PR 40003
2008-11-28 19:39:00 +00:00
ad
a93bd7922f Don't shoot self in the foot if / is on NFS. 2008-11-25 14:25:20 +00:00
ad
ab165b17f6 Create a dynamically linked sysinst as part of the build process, but don't
install it.
2008-11-21 15:39:29 +00:00
ad
389c672366 Don't ask for set location if:
- installing from CD-ROM or NFS
- and the root file system is of that type
- and the root file system contains sets
2008-11-21 15:31:20 +00:00
ad
708504e914 filesystem -> file system 2008-11-21 15:05:40 +00:00
martin
defe90f72c german trabslation of ipw/iwi license question 2008-11-09 17:58:49 +00:00
christos
5f123c574b make the eula acceptance permanent by adding it to sysctl.conf. From Anon Ymous 2008-11-06 15:30:23 +00:00
christos
faa758fa9c add a primitive "accept the license" for ipw and iwi. XXX: Needs translations. 2008-11-05 22:58:37 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
apb
96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
abs
8bf1bada05 Most ports do not create /.profile /.termcap and /sysinst in the target
before extracting sets, so do not try to delete them after install.
Now the '/.profile' from etc.tgz will actually be left after install

Note: bebox, evppc, and sandpoint still have a md_copy_filesystem() which
dumps a copy of the install filesystem into the target before extracting,
so I've left them removing /.profile /.termcap and /sysinst after install.
2008-10-07 09:58:14 +00:00
tsutsui
9264e132c6 Install bootloader into the FAT partition, not root partition. 2008-09-13 16:59:42 +00:00
ghen
cdef44cd09 Add Colemak and Dvorak options to the sysinst keyboard layout menu. They can
not simply be added to the KB_ENC_FUN table in sys/dev/wscons/wsksymdef.h
because it doesn't allow for multiple variants of the same layout.  PR#31399.
2008-09-03 08:52:36 +00:00
gmcgarry
3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
simonb
0885333839 Allow the "log" option to be chosen for filesystems. Move "log"
and "softdep" to top of menu to chose filesystem options.
2008-08-08 02:54:06 +00:00
tnozaki
727a7567f1 install/39193, fix signedness problem of converting char -> wchar_t. 2008-07-29 13:46:16 +00:00
skrll
e49e2d2167 -CPPFLAGS+= -I${SRCDIR}
Otherwise, system util.h is not included when compiling ifconfig.c, the
snprintb prototype is missing, and the flags don't get printed correctly
on hp700.
2008-07-25 15:11:48 +00:00
dsl
cc5a3a76ba mbrtowc() gets called to initialise the mbstate from libcurses.
Don't access address 0 and core dump when it does!
Fixes sysinst, the install ramdiskbin gets built against the standard
archive libraries (at least on amd64) which are build with HAVE_WCHAR.
2008-07-12 19:20:03 +00:00
dyoung
d75414adf5 Let us add/remove features from ifconfig, such as support for
various address families (inet, inet6, iso, atalk) and protocols
(802.11, 802.3ad, CARP), simply by trimming the list of sources in
the Makefile.  This helps one customize ifconfig for an embedded
device or for install media, and it eliminates a lot of grotty
#ifdef'age.  Now, the ifconfig syntax and semantics are finalized
at run-time using the constructor routines in each address-family/protocol
module.

(In principle, ifconfig could load virtually all of its syntax from
shared objects.)

Extract a lot of common code into subroutines, in order to shrink
the ifconfig binary a bit.  Make all of the address families share
code for address addition/replacement/removal, and delete "legacy"
code for manipulating addresses.  That may have broken atalk and
iso, despite my best efforts.

Extract an include file, Makefile.inc, containing the make-fu that
both ifconfig and x_ifconfig share.

Sprinkle static.  Change some int's to bool's.  Constify.

Add RCS Ids to carp.c and env.c.  Move media code to a new file,
media.c.  Delete several unneeded header files.

Set, reset, and display the IEEE 802.11 attribute, 'dot11RTSThreshold'.

Bug fix: do not require both a interface address and a destination
address for point-to-point interfaces, but accept a interface
address by itself.
2008-07-02 07:44:13 +00:00
mrg
c2b95373bf remove clause #3 from my license where there are no other
copyright holders involved.
2008-05-29 14:51:25 +00:00
hauke
5b622a2a06 Attempting to fix display problems of PR mac68k/37874
(1) By moving the "Choose your partition" menu up one line, we gain two
lines, since the scroll... message is gone.
(2) With the mac68k MAXPARTITIONS == 8, we only need 7 lines for the
partition table, which does not display the 'c' partition.

After both changes, the display fits nicely on an 80x24 screen even
for a full partition table. Should mac68k want to bump MAXPARTITIONS,
though, the partition table needs to be scrollable.
2008-05-24 21:42:52 +00:00
martin
c5f18ae1d0 PR install/38604: when chosing "use existing partitions", and the old
label looks like an autogenerated "whole disk" label, make sure that
we adjust the 'a' partition when we create an MBR that does not start
right at the start of the disk. Also when we force this partition to be
mounted, init it's mount point to / and force a newfs.
2008-05-24 11:06:53 +00:00
dyoung
e77c76146a Build af_link.c. Should fix 'build.sh release' failures. 2008-05-13 15:53:27 +00:00
dyoung
7b01455a0e Overhaul ifconfig. Use fewer global variables. Take a leap toward
improved modularity and extensibility.

In the new architecture, a directed graph of argument-matching
objects (match objects) expresses the set of feasible ifconfig
statements.  Match objects are labelled by subroutines that provide
the statement semantics.

Many IPv4, IPv6, 802.11, tunnel, and media configurations have been
tested.

AppleTalk, ISO, carp(4), agr(4), and vlan(4) configuration need
testing.
2008-05-06 04:33:42 +00:00
nonaka
abafa09887 fix make release breakage. 2008-05-01 17:27:33 +00:00
ad
da694a1ffc For PR kern/38537:
- Make MULTIPROCESSOR mandatory on i386.

Installation changes:

- Update installation section of release notes to match reality.
- Rename INSTALL to INSTALL_FLOPPY, retire INSTALL_LARGE.
- Build INSTALL kernel from GENERIC, like on amd64.
- Update boot menu to allow disabling ACPI and/or SMP.
- Remove GENERIC.NOACPI from the installed kernel list.
- TODO: install default boot.cfg in etc.tgz.
- TODO: possibly enable PCI fixup stuff at runtime if ACPI is disabled.

Build changes:

- No longer build ALL, it's for verification, is slow to build and the
  build process is already crippled by the number of kernels built.
- No longer build GENERIC.NOACPI.
2008-04-30 15:29:11 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin
3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
skrll
a4177c5c7a Commit the landisk install stuff I hacked together from hubert's efforts.
Requested by uwe.
2008-04-14 17:24:56 +00:00
nonaka
ded7276f3f - zaurus uses MBR
- Added fdisk to ramdisk
- increase ramdisk size
2008-04-10 15:45:29 +00:00
chris
4d962d78f3 Add sysinst support for zaurus.
Still needs some work, eg raw partition should be c not d on arm
platforms.
2008-03-31 23:55:29 +00:00
reed
99fa634a69 Reset DHCP values before use. If you first chose DHCP, then later
chose manual, the generated rc.conf has dhclient details instead
of defaultroute.  (Noticed this when dhclient ran successfully,
but network failed so I entered network settings manually.)
Now only defines dhclient rc.conf variables when DHCP is used
else defines the defaultroute.
2008-03-29 15:19:53 +00:00
martin
3ee500ddd5 Translate "Test programs" 2008-03-25 12:54:32 +00:00
martin
78154a9662 Add support for the new GENERIC.MP kernel set 2008-03-15 18:30:13 +00:00
phx
c470649f44 Include full XServer for ofppc.
Approved by garbled.
2008-03-09 10:13:10 +00:00
garbled
7c9d238473 Yank the bridge64 kernel 2008-02-05 19:09:02 +00:00