Commit Graph

13366 Commits

Author SHA1 Message Date
uwe 35565e90ce exports(5): improve mark up 2024-03-27 13:11:14 +00:00
riastradh 4d24788653 exports(5): Substantially rewrite for clarity.
Hope this is an improvement over the turgid paragraphs all about
first/second/third cases of everything.

PR misc/58063
2024-03-27 01:43:26 +00:00
riastradh 4c0b782a41 exports(5): Revert warning about `-ro' on read/write file systems.
Looks like the nfs server does enforce that after all, in spite of
the rather oblique commentary in the BUGS section about export
options being tied to local mount point options with which they must
be noncontradictory.

And there's no reason in principle it shouldn't enforce this -- it
just need to block various file system _operations_, rather than the
subtree issue where the criteria for evaluating whether operations
are allowed on particular _file handles_ are too painful to
contemplate.

PR misc/58063
2024-03-27 00:46:17 +00:00
riastradh 205c5a0017 exports(5), mountd(8): First pass at clarifying export semantics.
The exports(5) man page is full of walls of turgid prose that should
be itemized lists with syntax templates, and I'm itching to rewrite
it, but let's get the security-relevant warnings out of the way
first.

PR misc/58063
2024-03-26 23:32:43 +00:00
martin 5aa145f6e7 PR 58061: fix bug in the GPT backend: when inserting a partition
(i.e. not adding it at the end) a bogus ID was returned for the new
partition.
2024-03-24 17:29:58 +00:00
martin 96b81bf6d3 PR 58062: fix a bug I introduced with the https support: update
the pkgsrc/binary pkgs download URL not only when https transport
is selected.
2024-03-24 16:06:37 +00:00
mrg c3c0699382 usbdevs(8): don't assume usb bus count is the same as max usb bus unit
keep track of the highest usbN value, not the count of busses.

fixes a problem where you do "drvctl -d usb0" (or a parent), and then
"usbdevs" won't print info on the last bus.
2024-03-24 03:23:19 +00:00
nia b2466d56c6 sysinst: Clarify that usernames are maximum 8 characters
At least one user reported thinking that the previous wording implied
that usernames required padding to 8 characters.

This syncs the english translation with the german.
2024-03-21 02:24:35 +00:00
gutteridge eac9df6f33 cpuctl.8: fix grammar in a sentence 2024-03-19 01:19:11 +00:00
rillig b3253318bb postinstall: fix parameter order in usage message 2024-03-10 18:23:18 +00:00
rillig 3f5e8f7d32 postinstall: fix endless loop (since 2024-03-07) 2024-03-09 06:51:40 +00:00
rillig 88b554245c cpuctl: fix i386 bit descriptions for CPUID_SEF_FLAGS1
warning: non-printing character '\31' in description
    'BUS_LOCK_DETECT""b\31' [363]
2024-03-08 20:29:17 +00:00
christos fd2cfa10fe no local in loops, simplify eval (thanks kre) 2024-03-07 22:03:16 +00:00
christos 2a38a1154f - fix named.conf (remove dnssec-enable option)
- use proper local variables instead of adding _ or other prefixes.
- centralize rm use
- use grep -q instead of > /dev/null
- reduce constant duplication
2024-03-07 16:54:16 +00:00
riastradh fa5a04837c certctl(8): Pacify formal POSIX sh syntax.
According to POSIX 2018, the syntax between `then' and `elif' and
`fi' must be a _non-empty_ list of commands:

compound_list    : linebreak term
                 | linebreak term separator
                 ;
...
if_clause        : If compound_list Then compound_list else_part Fi
                 | If compound_list Then compound_list           Fi
                 ;
else_part        : Elif compound_list Then compound_list
                 | Elif compound_list Then compound_list else_part
                 | Else compound_list
                 ;

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10_02

NetBSD's sh(1) currently doesn't enforce this and allows an empty
sequence of commands, but let's not rely on that nonstandard quirk.

Noted in PR 57997.
2024-03-04 20:37:31 +00:00
riastradh 43f394c011 certctl(8): Avoid basename(1).
Saves some time running subprocesses.  Since this is only used for
non-directories (i.e., there's never trailing / on the inputs), it
suffices to delete the longest prefix matching glob `*/' with shell
parameter expansion -- much cheaper than spawning a subprocess.

Shaves off about 1/3 of the time spent in `certctl list' on an
aarch64 VM in qemu.

PR bin/57993
2024-03-03 15:53:55 +00:00
tkusumi 0b920f749a makefs/msdos: Fix broken [extra-directory ...] case
"path + cur->name" is not same as "cur->root + cur->path + cur->name"
for extra-directory files, as extra-directory files are
in different location. Do what makefs ffs code does.
2024-02-29 08:13:52 +00:00
martin f436dff43b Defer deletion of any color menu options untill the final menu (in the
selected language) has been loaded.
2024-02-21 20:31:57 +00:00
christos 855b7dce54 Add an options pretty-printer, pass some lint. 2024-02-18 16:59:16 +00:00
christos ca46f897d1 PR/57945: Jan-Benedict Glaw: makefs: msdos filesystems with label not
reproducible.
When we specify a label, the volume label is used to create the root dir
and it gets stamped by the timestamp. We were trying to set the timestamp
in the fs-specific part of the options parsing which did not work since
the method was called only for fs_specific options. Move setting of the
timestamp just before we create the fs, where we reconcile the rest of
the options.
2024-02-18 16:58:51 +00:00
martin 4013f0cf31 PR 57927: when comparing old and new partition state during renumbering,
ignore differences in the install target flag - the backend might have
flipped it off already to ensure only a single partition is marked
as install target.
2024-02-14 13:52:11 +00:00
andvar 1cd43426d5 Fix various typos in comments, log messages and documentation. 2024-02-10 18:43:51 +00:00
andvar 100a3398b8 fix spelling mistakes, mainly in comments and log messages. 2024-02-09 22:08:30 +00:00
andvar 749ce5c9e6 s/connetion/connection/ in messages. 2024-02-09 20:55:15 +00:00
andvar d378954346 fix misplaced or missing "e" in words with "ment" ending (argument, implement,
increment, decrement, alignment), in comments, documentation, log messages.
2024-02-08 20:51:24 +00:00
msaitoh 90313c06e6 Remove ryo@'s mail addresses. 2024-02-07 04:20:25 +00:00
msaitoh 6da2a6ed01 s/strucutre/structure/ in comment. 2024-02-07 04:00:10 +00:00
andvar 82bba4e936 fix various typos in comments. 2024-02-05 21:46:04 +00:00
andvar d30e897588 s/dependancies/dependencies/ and s/independantly/independently/ in comments and
distrib notes.
2024-02-05 21:39:51 +00:00
riastradh 83020821ca postinstall(8): Don't say /etc/openssl/certs.conf already exists.
It's confusing when all the other `postinstall fix' actions are
silent in the event they don't have anything to do.

PR install/57885
2024-01-29 00:57:38 +00:00
andvar 98a4945edb s/errer/error/ in log message. 2024-01-28 10:09:54 +00:00
jmcneill 8d626ee2f8 evbppc: Add initial support for the Nintendo Wii 2024-01-20 21:35:59 +00:00
christos 1e8c95cf5c simplify, we need to hard code the constant for tools anyway. 2024-01-19 19:08:49 +00:00
msaitoh 4dfb580c4d Add Meteor Lake and Emerald Rapids. 2024-01-18 03:19:26 +00:00
gson 8e979cd999 The serial bootblocks use the selected serial port, not the first serial port. 2024-01-16 21:04:26 +00:00
andvar 915340d5d2 Fix few typos in comments, mainly s/argment/argument/. 2024-01-15 19:44:06 +00:00
wiz 5aa6767554 Fix typo in wgconfig(8)
From rudolf in PR 57663
2024-01-15 08:29:14 +00:00
gutteridge 52a6ad3df5 crash.8: add xref to savecore(8) 2024-01-14 00:40:21 +00:00
thorpej 31b3bdce34 First crack at virt68k sysinst support, more-or-less cloned from mvme68k
with the names changed to protect the guilty and boot block installation
removed.
2024-01-06 07:38:13 +00:00
tsutsui 96fc6d0a8c Fix a typo of a kernel name on detecting a running machine type.
Should be pulled up to netbsd-10.
2024-01-04 18:09:37 +00:00
kre 48827a0943 This needs <stdbool.h> - it used to come from <sys/rbtree.h> (inappropriately)
but no longer (normally).    This should unbreak the builds.
2024-01-02 22:35:26 +00:00
uwe c82ff6065d syslog.conf(5): add back .Pp lost in previous 2023-12-31 23:39:27 +00:00
uwe dd903ef4d6 syslog.conf(5): improve markup
Use tagged lists, mark up literals, be consistent about options
(global): vs parameters (of a TLS action), fold TLS authentication
description into the TLS options section.
2023-12-31 19:41:22 +00:00
andvar 2e8b4c7fee s/informtion/information/ in comments. 2023-12-28 19:58:11 +00:00
tsutsui ec5d1d8226 Use EXIT_SUCCESS and EXIT_FAILURE where appropriate per style guide. 2023-12-28 12:13:55 +00:00
mrg 7426efd696 document how to use installboot on netbsd/vax. 2023-12-26 06:00:35 +00:00
tsutsui f083387bcd Return a proper exit status on failure on creating msdosfs.
No particular comment in PR bin/57752.
Should be pulled up to netbsd-10 and netbsd-9.
2023-12-20 15:07:16 +00:00
martin 372a09cae7 Fix kernel set names (the code has been changed to only offer GENERIC
or GENERIC64 kernel sets, but the UI messages and translations have not
been adapted back then)
2023-12-19 13:21:55 +00:00
martin 0578ab99d9 Add a https transfer method (sharing all host details with the http
transfer). Make this method the default for all downloads.

Try to make sure the binary pkg installation (which runs in a chroot
in the already installed system) can make use of SSL verification.

This does NOT fix the missing SSL verification in most install media
even if using https (due to not fully populated /etc/openssl/certs).
2023-12-17 18:46:42 +00:00
mlelstv 832b64785c Implement cngetc, don't abort. 2023-12-11 14:00:47 +00:00