Commit Graph

1467 Commits

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