Commit Graph

1557 Commits

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