Commit Graph

11000 Commits

Author SHA1 Message Date
christos f7bf36a390 add -w 2014-10-05 22:58:43 +00:00
roy 0c7cf1ae4c Change the IPv6 DNS selection to use DNS selection and add the
Google Public V4 DNS servers to the list.
The other field can take an IPv4 or IPv6 name server of choice.
Fixes PR install/49231.
2014-09-22 19:01:02 +00:00
roy 8e47ac0efa Remove the ping6 ff02::2 test, it looks pretty pointless.
dhcpcd will ensure the IPv6 network is up before forking.
ping the IPv4 default route before the nameserver as the nameserver
could be over the default route anyway.

Fixes the core issue with PR install/49231.
2014-09-22 18:47:41 +00:00
wiz 6880513a4a Add missing .El. From Henning Petersen in PR 49227. 2014-09-20 11:16:05 +00:00
wiz be551d1b14 Mark up author with .An. 2014-09-19 16:06:16 +00:00
wiz f5011e838f New sentence, new line. 2014-09-19 16:05:55 +00:00
wiz 5d2c9e2250 Fix section name. 2014-09-19 16:04:29 +00:00
wiz 2a65137f55 Sort sections. From Henning Petersen in PR 49222. 2014-09-19 16:02:58 +00:00
martin ceb7a1b9a3 For the benefit of gcc 4.5, rename a local "nl" variable to "nline",
so it doesn't collide with the global curses nl() function.
2014-09-13 17:22:22 +00:00
roy 1c37fe7141 Fix a bogus gcc warning: dhcp_config may be used uninitialized 2014-09-13 09:46:12 +00:00
roy 9cc5846ff7 Show the IP6 address instead of yes 2014-09-13 09:38:43 +00:00
roy 2787059b04 Strip newline from the gateway correctly. 2014-09-13 09:30:30 +00:00
roy eda033034a Change the display order so it's protocol agnostic at the top,
then IPv4 then IPv6.
2014-09-13 01:11:58 +00:00
roy 13c4979619 Only prompt for one nameserver, let the user decide if it's a
pre-determined google server other another one.
2014-09-13 00:38:36 +00:00
roy 63fc81c2f0 rtsol is no longer used. 2014-09-12 21:12:42 +00:00
roy 61e374731e Don't prompt for hostname or domain if obtained from DHCP. 2014-09-12 21:02:06 +00:00
roy 14d86bcffe dhcpcd will already have configured the system at this point, so
don't bother writing it manually.
2014-09-12 20:48:55 +00:00
roy ec4a0efb33 Use the 20-resolv.conf hook from dhcpcd rather than the minimal one.
Extract configured information from resolv.conf and hostname instead
of scraping the last dhcpcd script run.
This will allow the use of DHCPv6 and IPv6RA DNS details in the future.
2014-09-12 20:42:13 +00:00
roy 4fabb2a304 The dhcpcd utilties in pkgsrc require dhcpcd to be running in master mode.
So set dhcpcd to start like so, but restrict it to the configured interface
still instead of ifconfig_foo=dhcp.
2014-09-12 20:20:25 +00:00
wiz d762b67d80 Use Nx. 2014-09-11 21:04:34 +00:00
roy c6314d6139 Remove rtsol(8) and rtsold(8) as their functionality is in dhcpcd(8).
Remove rtsol(8) from rc.d/network.
Add -w seconds command to ifconfig to wait for N seconds for until DAD
has finished on all addresses.
Use ifconfig -w in rc.d/network instead of a forced sleep.

As discussed on tech-net@
2014-09-11 13:10:03 +00:00
wiz c48417e269 Fix pasto. 2014-09-10 21:13:50 +00:00
riastradh 3393ff7dbb Sternly advise against `pcictl read/write'. Use .Cm, not .Nm, while here. 2014-09-10 21:09:32 +00:00
msaitoh abce3ee962 Update CPUID signature values from the latest Intel SDM.
- Core M-5xxx
- Core i7 extreme
- Future Core (0x4e)
- Future Xeon (0x56)
2014-09-09 15:14:39 +00:00
martin 3c93e210ff Make msdosfs time conversion use the y/m/d/h/m/s conversion functions
from clock_subr.c and compile that into the userland (and tools)
makefs as well.
2014-09-01 09:09:47 +00:00
manu 5b31193998 read and write commands for pcictl, from riastradh@ and wiz@
http://mail-index.netbsd.org/tech-kern/2014/08/26/msg017572.html
2014-09-01 07:11:19 +00:00
wiz 12e2372174 Sort options. 2014-08-31 09:59:08 +00:00
mrg 8865fe7c92 add -N option to print the driver name as returned by pci_drvname(3). 2014-08-31 09:16:54 +00:00
wiz 23f0d17f09 Use more appropriate macro for command line command argument. 2014-08-26 16:21:15 +00:00
martin 551f6cb995 Make sure to not dereference a NULL pointer. 2014-08-19 13:44:31 +00:00
martin 7a7d59f635 Cosmetic changes trying to appease coverity scan. 2014-08-19 13:41:08 +00:00
martin 722a22e445 Check return values from stat before comparing contents of the result
structures. Pointed out by coverity scan.
2014-08-19 13:36:04 +00:00
martin 3221cb6f7f if chdir() fails, try chdir / 2014-08-19 13:30:32 +00:00
martin ffc1983074 Make an invariant more clear to avoid fals positives from coverity scan 2014-08-19 13:26:27 +00:00
martin fe0740f823 Check return value from getenv() before using the value. Pointed out by
coverity scan.
2014-08-19 13:04:45 +00:00
martin 14d42b6c1e Make sure the interface name is 0 terminated, pointed out by coverity scan. 2014-08-19 13:01:48 +00:00
martin 36f4a5867f Remove (accidently) duplicated code - pointed out by coverity scan. 2014-08-19 06:49:21 +00:00
martin eee31b641f Remove duplicate fclose(), pointed out by coverity scan. 2014-08-19 06:47:15 +00:00
jnemeth e0eccc7b53 - when checking hostname of incoming remote messages, fallback to checking
remote host if the message doesn't contain a hostname
- don't truncate IP addresses when reading syslogd.conf
2014-08-18 05:21:16 +00:00
manu 440aad5bad Remove a warning that happens when the filesystem cleanly exits. Just
display a message when running in debug mode.
2014-08-16 16:32:04 +00:00
jmcneill 6fcbb74223 remove trailing colon from "addusername" msg 2014-08-15 22:58:11 +00:00
skrll 46ef4b0409 Report super speed devices. From Takahiro HAYASHI. 2014-08-12 13:40:07 +00:00
apb 94b079ef04 In get_makevar, ask make to recursively expand the variable,
not just print the unexpanded value.  This is done by
using make -V '${VAR}' instead of make -V 'VAR'.
2014-08-12 09:12:18 +00:00
apb 02561653c9 Quoting fixes in several eval commands. 2014-08-12 08:32:43 +00:00
apb 1bbb38d5f6 Check for and delete ${DEST_DIR}/@RUNDIR@, not /@RUNDIR@.
Also remove an unnecessary eval in do_dhcpcdrundir and
fix a typo in the description.
2014-08-12 08:28:04 +00:00
rmind 670c10ba87 - Add and use npf_alg_export().
- npf_conn_import: handle NAT metadata correctly.
- npf_nat_newpolicy: restore the policy ID.
- npfctl_load: fix error code handling for the limit cases.
- npf_config_import: fix the inverted logic.
- npfctl_load: improve error handling.
2014-08-11 23:48:01 +00:00
roy f356508f3e FONTCONFIG_DIR not existing does not need to be fixed. 2014-08-11 12:49:01 +00:00
riz db9fae484c Use installboot to install bootblocks for i386/amd64, now that
they are included on all boot media.

Some of the previous method of setting the console (and conspeed, when
using serial console) is retained, but it should probably be reworked.

Also, adapt to the fact that we may be installing to a disk wedge.

With this change, it is now possible (but still ugly) for sysinst to
create a bootable GPT-labeled disk.
2014-08-11 00:31:22 +00:00
rmind d0850273a2 - Add npf_ruleset_export(), npf_rule_export() and npf_nat_policyexport().
- Split off npf_conn_export().  Add npf_ifmap_getname() and use it to save
  the interface name; pick it up on npf_conn_import().
- Misc fixes.  Bump NPF_VERSION.
2014-08-10 19:09:43 +00:00
tls ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
riz ede85da57f Clean up comments. No functional changes. 2014-08-08 20:59:35 +00:00
riz 6a3b8676d9 Most GPT fields are 64-bit quantities, so use 64-bit types to store.
Don't try to assign negative values to unsigned quantities.
Use strtouq(), not atoi(), to read 64-bit values.

Booting from an installed GPT-labelled disk still doesn't work,
but at least sysinst doesn't crash as soon as a GPT is created.
2014-08-08 20:24:27 +00:00
joerg 0d704fc1a2 Make it a warning, otherwise the missing noreturn will fail the build. 2014-08-06 12:34:42 +00:00
martin 8b3edf2fa9 Do not install message catalogs 2014-08-06 12:16:12 +00:00
martin 169405fcaa Remove a few menu entries if raid/lvm/cgd/gpt are not available. 2014-08-06 10:03:49 +00:00
martin 438e08f560 Make sysinst use the catalog files installed in /usr/share/sysinst (if
available), fall back to . if not, or use build-in english otherwise.
2014-08-06 09:11:46 +00:00
martin 50357e6f8b Install language files 2014-08-05 18:46:04 +00:00
martin e0a0745c3d Avoid comparision between array and NULL 2014-08-05 08:39:39 +00:00
apb f80058aa23 Synchronise several shell_quote implementations, and:
* Elide some unnecessary pairs of quotation marks, to improve readability.
  For example, shell_quote "''" is now \'\' instead of ''\'''\'''.
* Don't add quotes around words that contain only safe characters,
  to improve readability.
* LC_COLLATE=C to prevent [a-zA-Z] from matching non-ASCII characters.
* Use ${SED} if defined.
2014-08-04 21:56:30 +00:00
martin 037e685afe Adapt to extended partitioning support 2014-08-04 08:59:28 +00:00
martin c5d76a21ae Rename the "exit" option in the "select your installation" menu into
"Abandon installation" to make clear it is fatal - suggested by
Andreas Gustafsson.
2014-08-04 08:50:13 +00:00
mrg dba5edb2f6 for the !tmpfs case, ensure that pm_with_swap is initialised. 2014-08-04 04:20:01 +00:00
martin 4b2364d962 (Finally) merge a slightly modified version of the 2012 GSoC results
from Eugene Lozovoy: add extended partitioning options to sysinst.
Still needs some testing and polishing, but it now is possible to use GPT
or to create a RAID set from scratch and install onto it.
2014-08-03 16:09:38 +00:00
rmind c2b1c6cc23 Cross-link npf(7). 2014-08-03 00:02:56 +00:00
rmind b8d1dbad64 NPF: add a general npf(7) manual page. Improved by wiz@. 2014-08-02 23:57:40 +00:00
wiz fc7115c3f4 Fix an off by one bug in apropos.
The bug is in the html output where some garbage characters are
seen in the context match output.

From Abhinav Upadhyay in PR 49058.
2014-08-01 12:55:00 +00:00
dholland e3566c1bef Fix illegal snprintf usage noted in PR 47976 by simplifying it away:
instead of consing up a string and printing it to stdout, just print
to stdout. Not as compositionally tidy, but much simpler and perfectly
adequate here.
2014-07-27 04:46:48 +00:00
dholland d78881479c Fix broken snprintf usage; noted in PR 47976 from Henning Petersen.
As a bonus, this removes the nonliteral format arguments.
2014-07-27 04:38:03 +00:00
dholland 4808d892e4 Add a dummy sysinst architecture for ports that don't have their own yet.
This makes the presence of sysinst in /usr/sbin MI (as intended) --
remember that one of the goals is for sysinst to be able to install
chroots, and installing a chroot is a sensible operation on all ports,
even those for which an installer per se might not make sense.

Currently this dummy architecture fails instead of doing anything, but
as they say, one thing at a time.
2014-07-26 19:56:30 +00:00
dholland 29ed33b85f Descend into sysinst. 2014-07-26 19:32:37 +00:00
dholland e52187bbbb Update for building in usr.sbin. 2014-07-26 19:32:22 +00:00
dholland 50dbef1a09 Move sysinst sources to usr.sbin.
This commit only physically moves the sources - there are no other
changes, to maximize the probability that this will be treated as a
rename if we ever do manage to migrate away from CVS.

Moving sysinst has been discussed on and off for years and has two
goals: making it easier to work on sysinst, and also making sysinst
available on running systems for use installing chroots and VM images
and other such things. None of the latter is possible yet, but as they
say, one thing at a time.

Doing this now was approved in an impromptu fashion by mrg, riz,
riastradh, me, and groo.
2014-07-26 19:30:39 +00:00
msaitoh 128822ca6e More update:
- Future Atom E3000, Z3000 (0x4a, 0x5a, 0x5d)
- Atom C2000 (0x4d)
2014-07-25 14:18:49 +00:00
msaitoh 3d4f4e180c Update table for processor families and processor number series from the
latest Intel SDM.
- Atom Z3000 (0x37)
- Core M based on Broadwell (0x3d)
- Next gen Xeon based on Haswell (0x3f)
2014-07-25 13:52:26 +00:00
htodd c1a007a161 Build fix (use error when defined). 2014-07-23 05:00:38 +00:00
rmind a02b7176fb NPF: rework of the connection saving and restoring:
- Add support for saving a snapshot of the current connections together
  with a full configuration.  Support a reverse load operation.  Eliminate
  the old 'sess-save' and 'sess-load' in favour of the new mechanism.
- Share code between load and reload operations: the latter performs
  load from npf.conf without affecting the connections.
- Simplify and fix races with connection loading.
- Bump NPF_VERSION.
2014-07-23 01:25:34 +00:00
rmind 903939e342 formatting 2014-07-20 00:48:51 +00:00
rmind a7d2a60827 NPF: add nbuf_t * into npf_cache_t and remove unnecessary carrying by argument. 2014-07-20 00:37:41 +00:00
maxv ca657fc91e What a terrible use-after-free 2014-07-09 06:04:16 +00:00
dholland b7b7574d3b Reorg docs, part 1:
Move all the reference manuals to subdirs of /usr/share/doc/reference.
We have subdirs ref1-ref9, corresponding to man page sections 1-9.

Everything that's the reference manual for a program (sections 1, 6,
8), C interface (sections 2, 3), driver or file system (section 4),
format or configuration (section 5), or kernel internal interface
(section 9) belongs in here.

Section 7 is a little less clear: some things that might go in section
7 if they were a man page aren't really reference manuals. So I'm only
putting things in reference section 7 that are (to me) clearly
reference material, rather than e.g. tutorials, guides, FAQs, etc.
This obviously leaves some room for debate, especially without first
editing the docs with this distinction in mind, but if people hate
what I've done things can always be moved again.

Note also that while roff macro man pages traditionally go in section
7, I have put all the roff documentation (macros, tools, etc.) in one
place in reference/ref1/roff. This will make it easier to find and
also easier to edit it into some kind of coherent form.
2014-07-05 19:22:41 +00:00
dholland c3ab26950f Rework /usr/share/doc.
Update the <bsd.doc.mk> infrastructure, and update the docs to match
the new infrastructure.

- Build and install text, ps, pdf, and/or html, not roff sources.

- Don't wire the chapter numbers into the build system, or use them in
the installed pathnames. This didn't matter much when the docs were a
museum, but now that we're theoretically going to start maintaining
them again, we're going to add and remove documents periodically and
having the chapter numbers baked in creates a lot of thrashing for no
purpose.

- Specify the document name explicitly, rather than implicitly in a
path. Use this name (instead of other random strings) as the name
of the installed files.

- Specify the document section, which is the subdirectory of
/usr/share/doc to install into.

- Allow multiple subdocuments. (That is, multiple documents in one
output directory.)

- Enumerate the .png files groff emits along with html so they can be
installed.

- Remove assorted hand-rolled rules for running roff and roff widgetry
and add enough variable settings to make these unnecessary. This
includes support for
   - explicit use of soelim
   - refer
   - tbl
   - pic
   - eqn

- Forcibly apply at least minimal amounts of sanity to certain
autogenerated roff files.

- Don't exclude USD.doc, SMM.doc, and PSD.doc directories from the
build, as they now actually do stuff.

Note: currently we can't generate pdf. This turns out to be a
nontrivial problem with no immediate solution forthcoming. So for now,
as a workaround, install compressed .ps as the printable form.
2014-07-05 19:22:02 +00:00
msaitoh 74aebcc5ae Exclude descriptor 0xff of CPUID leaf 2. 0xff means the cacheinfo is in leaf 4. 2014-07-03 04:11:37 +00:00
rmind 9c7a886e44 NPF:
- Populate the BPF external memory store with L3 information.
- Eliminate NPF_COP_L3 call and just use the data in the memstore.
- Bump NPF_VERSION.
2014-06-29 00:05:24 +00:00
szptvlfn 20e418f0d1 s/stavfs/statvfs/ 2014-06-25 23:22:18 +00:00
rmind c3d5721647 npftest: add an example in the README, fix the total in npf_test_conc(). 2014-06-25 00:21:42 +00:00
rmind 263d30c43e Adjust NPF to the recent BPF / BPF JIT changes and make it work again.
All regression tests are happy now (hi alnsn!).
2014-06-25 00:20:06 +00:00
alnsn 19fed70d36 Implement copfuncs and external memory in bpfjit. 2014-06-24 10:53:30 +00:00
christos 2cab074098 add NOTREACHED comment 2014-06-21 17:50:01 +00:00
christos 0ff5eeabb1 add notreached comment 2014-06-21 17:48:07 +00:00
apb 52a5651c02 Use extra="${2-/,}" to use $2 if defined, else default to "/,". 2014-06-16 22:12:30 +00:00
apb 9b3ba6dbb0 Delete trailing slash with "${1%/}", not "${1#/}". 2014-06-16 22:04:39 +00:00
apb 0f5a92d284 Add a new obsolete_stand target, disabled by default,
to delete old files and subdirectories under /stand/${MACHINE}.
2014-06-16 08:59:13 +00:00
apb 7fc31c82f1 Remove stray quotation mark 2014-06-16 08:39:56 +00:00
apb 080bff1a9f In do_sendmail, use unprefix to fix up paths that will be
processed by obsolete_paths.
2014-06-16 08:29:18 +00:00
apb 4478f1a2eb Clarify wording in a comment for obsolete_paths. 2014-06-16 08:28:08 +00:00
apb dc6efbc769 Add bre_quote (copied from etcupdate), and unprefix functions. 2014-06-16 08:21:20 +00:00
apb d7be6cf067 Add SORT and SED variables, in case a host environment needs them. 2014-06-16 07:08:06 +00:00
wiz 88090ea395 Use more markup. 2014-06-15 07:24:32 +00:00
dholland 3c8bd4a957 Document exponential backoff behavior and SIGHUP support, plus a couple
other minor edits.
2014-06-15 01:37:48 +00:00
joerg 0142924a4e Use asysctl. 2014-06-13 16:00:55 +00:00