Commit Graph

1716 Commits

Author SHA1 Message Date
riz
420ca486a3 French translation of new strings, and some other fixes.
From Matthew Mondor.
2012-04-07 23:25:18 +00:00
jdf
1671538f34 Fix for PR 45816: Restructuring the error menu when the CD ROM is missing. 2012-04-07 19:02:57 +00:00
tsutsui
d1ab79a2ea Use 1MB alignment rather than the default 63 sectors for
fdisk partition boundary for >128GB disks, as fdisk(8) does.
No particular comments for my PR install/45990.
2012-04-07 03:08:33 +00:00
riz
ed2340b163 Implement a post-install configuration menu, as proposed on tech-install.
Enables the user to configure a few additional items, including using
pkgin to manage binary packages, in a post-install menu which replaces
the series of questions (Do you want to set a root password? etc).

This is by no means a perfect solution, nor should it discourage anyone
from working on more sweeping changes to sysinst.

Some bug fixes, and .de translation provided by Julian Fagir.

XXX .es, .fr and .pl translations still needed.  Please help!
2012-04-06 23:48:53 +00:00
wiz
3957bea1ef Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
matt
bda6ce62a2 Use C89 function definitions. 2012-03-21 05:43:55 +00:00
tsutsui
34ae6a8457 Remove trailing whitespaces where explicit line break is not necessary:
- paragraph break (two newlines)
 - list indent (leading tab)

XXX: msgc(1) lacks description about formatings.
2012-03-03 03:06:30 +00:00
tsutsui
c92748bcf3 Remove unused pasto messages. No Human68k on hp300. 2012-03-03 02:46:13 +00:00
tsutsui
e2ddea308d Remove trailing whitespaces in messages where line break is not expected. 2012-03-03 02:34:13 +00:00
tsutsui
fa87856d54 Remove (harmless) trailing tab. 2012-03-03 02:26:45 +00:00
tsutsui
e4fbe1f59d Remove trailing spaces not in message format. 2012-03-01 18:08:56 +00:00
tsutsui
9db2bcabd6 Remove trailing spaces not in message format. 2012-03-01 17:40:31 +00:00
tsutsui
a77ac84a0c Put back more spaces at EOL for line breaks. 2012-03-01 17:27:29 +00:00
mbalmer
2e5c623416 Put back spaces at EOL where needed (in a message file, a space at EOL
means a line break, a line break means a space...)
This should fix PR 46042.
2012-03-01 16:22:13 +00:00
agc
1923fda99b consolidate all of the volatile /var.* directories which are mounted as tmpfs
into a single one for /var - same as /root, /etc
2012-02-29 04:49:50 +00:00
mbalmer
b3d36785a0 Fold long lines and a little KNF. 2012-02-26 10:17:44 +00:00
ast
7964aa2984 Update the amd64 and i386 examples to use /usr/mdec/bootxx_ffsv2,
i.e. DEFAULT_UFS2 as src/distrib/utils/sysinst/bsddisklabel.c does
since post-NetBSD5.  This avoids rendering an i386 or amd64 system
unbootable if the given example is thoughtlessly cut-and-pasted on
a NetBSD6.x system (been there, done that ;-) Qualify the descriptions
of /usr/mdec/bootxx_ffsv{1,2} along those lines.

Fixed a small typo in comment of distrib/utils/sysinst/arch/amd64/md.h.

Ok by releng@
2012-02-09 18:35:44 +00:00
nisimura
1858b8306e - add MBR editing menu to sysinst.
- fix typos in timecounter names.
- make sure to drain Tx FIFO to avoid clobbering
  kernel boot messages.
- allow to have the 3rd UART.
- add missing time-of-day clock support.

Ok by releng.
2012-02-07 09:06:04 +00:00
nisimura
9aa0874ef1 Add Mini2440 entry to sysinst kernel selection. 2012-02-03 00:35:35 +00:00
phx
678263a5d4 Translate some new messages into german. 2012-02-02 22:15:04 +00:00
phx
bd07308fb4 Use sync(8) instead of echo(1) to avoid writing an RDB disklabel.
echo(1) is not part of the miniroot file system.
2012-02-02 21:58:31 +00:00
tsutsui
96d29df0a1 Select a proper kernel set (GENERIC or C700) per running INSTALL kernel name. 2012-02-02 16:00:35 +00:00
phx
2be87fafe3 Add support for RDB-partitioned disks.
When an RDB block was found on the disk we cannot change the disk layout,
and everything which has to do with MBR partitioning will be skipped.
2012-01-29 16:01:36 +00:00
tsutsui
c1e4c0e11a zaurus zboot supports UFS2. (as defined in zaurus/stand/zboot/conf.c) 2012-01-26 16:12:14 +00:00
phx
c43563e336 netboot is called altboot now 2012-01-25 19:03:35 +00:00
agc
d2e3329102 While the resulting image from mkimage can always be mounted with vnd,
and then modified, it is much easier to let this late, user-oriented
customisation be done automatically.  These mods let mkimage change
information based on files in a "custom" directory, which can be set
in mkimage using -c customdir.

After all other configuration, the files under custom/ will be copied
into the main image.  The files under custom/ are taken into account
when performing autosizing.

Also, generalise the sets directory to point to the current machine
architecture, although this can be overwritten from the command line
by anyone making cross-images.

An example to make a user image with an embedded read-only 100 MB
iSCSI target:

% ./mkimage -c custom
=== making a new 272 MB image in usermode.img ===
272+0 records in
272+0 records out
285212672 bytes transferred in 7.616 secs (37449142 bytes/sec)
=== mounting image via vnd vnd0 ===
/dev/rvnd0a: 272.0MB (557056 sectors) block size 8192, fragment size 1024
        using 6 cylinder groups of 45.34MB, 5803 blks, 11264 inodes.
super-block backups (for fsck_ffs -b #) at:
32, 92880, 185728, 278576, 371424, 464272,
=== installing sets ===
base
etc
modules
=== performing customisations ===
=== making extra directories ===
=== customising /var/tmp ===
=== user customisations from files in custom ===
Filesystem    1K-blocks       Used      Avail %Cap Mounted on
/dev/vnd0a       269967     263958      -7489 102% /mnt
% ls -l -R custom
total 8
drwxr-xr-x  3 agc  agc  512 Jan 18 03:58 etc
drwxr-xr-x  2 agc  agc  512 Jan 18 04:00 iscsi

custom/etc:
total 8
drwxr-xr-x  2 agc  agc  512 Jan 18 03:58 iscsi
-rw-r--r--  1 agc  agc  564 Jan 18 03:58 rc.conf

custom/etc/iscsi:
total 6
-r--r--r--  1 agc  agc  799 Jan 18 04:27 targets

custom/iscsi:
total 102484
-rw-r--r--  1 agc  agc  104857600 Jan 18 04:00 iscsi-target0
% sudo vnconfig vnd0 usermode.img
% sudo mount /dev/vnd0a /mnt
% cat /mnt/etc/iscsi/targets
# $NetBSD: targets,v 1.2 2006/02/16 19:30:57 agc Exp $
#
# Structure of this file:
#
# + an extent is a straight (offset, length) pair of a file or device
#   it's the lowest common storage denominator
#   at least one is needed
# + a device is made up of one or more extents or other devices
#   devices can be added in a hierachical manner, to enhance resilience
# + in this example, no device definitions are necessary, as the target
#   will just use a simple extent for persistent storage
# + a target is made up of 1 or more devices
# The code does not support RAID1 recovery at present

# Simple file showing 1 extent, mapped straight into 1 target

# extent        file or device          start           length
extent0         /iscsi/iscsi-target0    0               100MB

# target        flags   storage         netmask
target0         ro      extent0         0.0.0.0/0
% ls -l /mnt/iscsi/iscsi-target0
-rw-r--r--  1 agc  agc  104857600 Jan 18 04:00 /mnt/iscsi/iscsi-target0
% diff custom/etc/iscsi/targets /mnt/etc/iscsi/targets
%
2012-01-20 02:19:47 +00:00
agc
00c311bc00 Add 3 scripts which are useful for making images for usermode, or any
embedded platform in particular.

+ mkimage will make an autosized image in a file (using vnd) from sets
the resulting image can be mounted read-only, with tmpfs used for volatile
files on top of read-only bases

+ mkpkgs will make an autosized image in a file (using vnd) from binary
packages

+ usermode is an easy way to invoke usermode, making sure that bridging
is set up properly, and that the host syscallemu module is loaded. This
script then runs usermode with two file images (as produced by mkimage
and mkpkgs)
2012-01-15 02:01:02 +00:00
gson
f6c2d0baa7 Add support for installing source sets as discussed on tech-install,
with improved German translations from Martin Husemann and Julian
Djamil Fagir.  French, Spanish, and Polish translations are
still needed.  OK christos, riz.
2012-01-10 21:02:47 +00:00
skrll
ccf87b9e24 Error if the root partition exceeds the PDC 2GB limit. The check now
catches invalid "existing" partitions. PR/45742

Thanks to martin for the German translation. The others are all my fault.

Thanks to mrg for comments
2012-01-09 11:51:41 +00:00
riz
9dc21a478b Copy resolv.conf into target even if it was created by DHCP, since in
that case, it will be replaced on next boot anyway.
2012-01-09 02:52:50 +00:00
riz
a457d440cf Use the "doingwhat" message for the multiple disks case, not just the
single-disk case.

XXX Native speakers of .fr, .es, .de, and .pl please make sure the
replacement makes sense.  Thanks!
2012-01-09 01:51:47 +00:00
riz
1bfc197123 Add defs.h to DPSRCS. 2012-01-08 21:20:40 +00:00
christos
ecad436e9c work for both X11R6 and X11R7 2012-01-08 02:32:00 +00:00
christos
56ed22796c this is only valid for X11R6; we never had a.out X11R7 2012-01-08 02:24:32 +00:00
christos
4e3ddc38b5 only deal with X11R7 now. 2012-01-07 18:54:30 +00:00
riz
924cc21636 Don't use snprintf() to format, when run_program() will do it nicely on
its own.  Suggested by joerg.
2012-01-06 20:52:43 +00:00
riz
39a56bcacc Use getfslabelname() instead of trying to access fstypenames[] directly. 2012-01-06 20:41:28 +00:00
christos
c9ef664a0f we want the label name not the fstype name. 2012-01-05 22:18:36 +00:00
christos
c4873f6cd0 eliminate logging variable from md code. 2012-01-05 21:32:35 +00:00
christos
4ea9182c55 eliminate useless booleans and use the file pointers as conditionals. 2012-01-05 21:29:24 +00:00
christos
c03a5a1e01 - add printflike and fix the broken formats
- make sure we don't exceed the number of partitions we have
2012-01-05 21:22:49 +00:00
christos
947502beba kill unused variable 2012-01-05 20:22:33 +00:00
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