Commit Graph

1584 Commits

Author SHA1 Message Date
martin 6817543049 Do not assign to a const pointer, but set the value of the target variable
instead. Makes sysinst at least start up again.
2012-06-23 17:49:58 +00:00
christos a9706a560c Trying to print a function pointer as a string is likely to cause tears.
While here, don't match on the unit either
2012-06-23 14:06:02 +00:00
abs 04c1553d52 - Replace the CD_NAME definition with a CD_NAMES comma separate list,
the default remains "cd0a", but i386 sets "cd0a", "mcd0a" while vax
  takes "cd0a", "racd0a"
- Add get_default_cdrom() to disks.c, which is called in init(). This
  checks the contents of hw.disknames against CD_NAMES. The first one
  found (minus partition letter) is picked, otherwise the first entry
  in CD_NAMES is used
The primary beneficiary is vax systems with an MSCP but no SCSI CD
drive, which now default to (a valid) racd0a rather than an invalid
cd0a.  The obvious example being simh-vax
2012-06-22 20:54:39 +00:00
jdf e68bb1b900 Change name of author from Nudleman to Nudelman.
See less(1) or http://en.wikipedia.org/wiki/Less_(Unix) for reference.
Patch provided by Bug Hunting
2012-06-08 12:39:42 +00:00
tsutsui f03261f467 Fix regression by my dumb patch in PR/45990.
sysinst fails with "floating exception" after
changing MBR partition size in MBR editor menu
if the target disk doesn't have valid MBR partition
or has a valid partition 0 whose offset is not 1MB aligned
(like 63 sectors).

read_mbr() (which calls get_ptn_alignment()) is called
before set_bios_geom(), so bhead is not initialized there
and ptn_alignment could be zero.

To workaround, explicitly call get_ptn_alignment() again
in edit_mbr() to update ptn_alignemnt per BIOS geom values.
2012-05-26 05:09:59 +00:00
jdf cb54fe064f Changed returncodes to -1 of mount_disks in case of error (before, they were
inverted).
Add message mount_failed to be displayed when a mount fails, offering the
opportunity to go on anyway (fix for PR install/12020).
2012-05-21 22:38:25 +00:00
jdf 7b75438926 Adds a check to determine the root filesystem for determining the path of the
rc.conf. Without, the menu would fail as it tried to `chroot ""` (target_root
returns "" for / as root).
2012-05-15 15:50:58 +00:00
martin b5e206ee7a Tweak a few grammar errors 2012-05-15 08:47:53 +00:00
nisimura 2a5eed591c Add KURO-BOX/T4 support to sysinst. Tested good with the target
machine.
2012-05-12 08:31:52 +00:00
martin e90a004d0c Fix harmless error preventing auto-finding non-ISO9660 formatted CD
partitions (when offering sets from CD).
2012-05-08 13:51:34 +00:00
riz 89f7ad6034 Check for del_rc_conf() == 0, not !del_rc_conf(), and fix a couple of
instances where the check was wrong.  sysinst now properly saves dhcp
and host config again.
2012-05-01 18:28:47 +00:00
riz 4ca684e9f6 Don't have pkgin prompt before updating the database. 2012-04-30 19:57:52 +00:00
martin 0aeedd76fe Add missing white spaces at end of line (meaning forced line breaks) 2012-04-30 19:49:26 +00:00
martin 23b152e8d9 Translate enable_binpkg 2012-04-30 19:43:45 +00:00
riz 29b07b45cc Check if the network is up before attempting to install pkgin. If not,
configure it.
2012-04-30 19:05:29 +00:00
riz f75e70385a Change the pkgin repository *before* running pkgin update. Spotted
by imil@.
2012-04-12 16:05:48 +00:00
jdf ccba2c41c9 Make sysinst not store the keyboard or network configuration used while
upgrading, as issued by PR install/35538.
2012-04-09 23:18:31 +00:00
uebayasi 60ebd64731 Remove duplicate English text. Remove ^M. Fix build. 2012-04-08 03:11:14 +00:00
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