aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* pw(8): use openmemstream instead of sbuf(9)Baptiste Daroussin2021-04-272-41/+47
|
* Make pkg(7) use environment variables specified in pkg.confMoritz Schmitt2021-04-272-4/+27
| | | | | | | | | Modify /usr/sbin/pkg to use environment variables specified in pkg.conf. This allows control over underlying libraries like fetch(3), which can be configured by setting HTTP_PROXY. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29820
* etcupdate: Add -D destdir to usage for 'extract'.John Baldwin2021-04-262-2/+3
| | | | | Reported by: Mark Millard <marklmi@yahoo.com> MFC after: 1 week
* pf: Allow multiple labels to be set on a ruleKristof Provost2021-04-261-1/+1
| | | | | | | | | | | | Allow up to 5 labels to be set on each rule. This offers more flexibility in using labels. For example, it replaces the customer 'schedule' keyword used by pfSense to terminate states according to a schedule. Reviewed by: glebius MFC after: 2 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29936
* etcupdate: Remove the old pre-world tree when rotating for -p.John Baldwin2021-04-231-1/+1
| | | | | | | | | | | This fixes a bug in an earlier change to move tree rotation to the end of the update where the step to make room for the new preworld tree was deleting the old "current" tree instead of the old "preworld" tree. Reported by: olivier, dhw Fixes: 0611aec3cf3a373e6a06f103699dbc91c3d6d472 MFC after: 2 weeks
* bhyve: Gracefully handle virtio-scsi with no confRyan Moeller2021-04-221-0/+3
| | | | | | | | | | Fixes segfault with the command `bhyve -s 0,virtio-scsi`, which is used by some third party software to probe bhyve for virtio-scsi support. Reviewed by: jhb MFC after: 1 day Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D29926
* pmcstat: fix the usage message for -tMitchell Horne2021-04-211-1/+2
| | | | | | | | | A slight mix-up of the flags means this case isn't triggered when it should be. Now, `pmcstat -s event -t 1234` will print the correct error message. MFC after: 1 week Sponsored by: The FreeBSD Foundation
* pmcstat: set initial counter value to zeroMitchell Horne2021-04-211-1/+1
| | | | | | | | | | | | | For an infrequent event, pmcstat may report (u_long)-1 for CPUs where the counter was never incremented. Just set this to zero, instead. ev->ev_count is passed as the 'count' argument to pmc_allocate(3), but this wasn't always the case. Reviewed by: gnn MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29887
* Append Keyboard Layout specified option for using VNC.Michael Reifenberger2021-04-214-19/+115
| | | | | | | | Part one: supporting QEMU Extended Keyboard Event Message PR: 246121 Submitted by: koinec@yahoo.co.jp Differential Revision: https://reviews.freebsd.org/D29430
* dconschat: Remove support for FreeBSD 4.x and earlier.Warner Losh2021-04-201-9/+0
| | | | Sponsored by: Netflix
* fwcontrol: Remove support for FreeBSD 4.xWarner Losh2021-04-202-8/+0
| | | | Sponsored by: Netflix
* bsdinstall: remove compat hacks for FreeBSD 9 and earlierWarner Losh2021-04-201-5/+0
| | | | Sponsored by: Netflix
* bhyve: Be explicit that setting config.dump will not start a VM.John Baldwin2021-04-201-4/+6
| | | | | | Suggested by: rpokala Reviewed by: bcr (manpages) Differential Revision: https://reviews.freebsd.org/D29738
* etcupdate: Add a revert mode to restore one or more stock files.John Baldwin2021-04-202-13/+60
| | | | | | Reviewed by: imp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29846
* etcupdate: Trim trailing whitespace.John Baldwin2021-04-201-3/+3
| | | | | | Reviewed by: imp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29845
* etcupdate: Gracefully handle SIGINT when building trees.John Baldwin2021-04-201-14/+17
| | | | | | | | | | | | | | Run the 'build_tree' function inside of a subshell and trap SIGINT to return an error to the caller. This allows callers to gracefully cleanup a partially created tree. While here, redirect stdout/stderr of the subshell to the log file instead of applying redirections individually to each command executed while building the tree. Reviewed by: imp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29844
* etcupdate: Always extract to a temporary tree.John Baldwin2021-04-201-56/+92
| | | | | | | | | | | | | | | | | | | etcupdate has had a somewhat nasty race condition since its creation in that its state machine can get very confused if it is interrupted while building the tree to compare against. This is exacerbated by the fact that etcupdate doesn't emit any output while building the tree which can take several seconds (especially in recent years with the addition of the tree-wide buildconfig/installconfig passes). To mitigate this, always install a new tree into a temporary directory created via mktemp as was previously done only for dry-runs via -n. The existing trees are only rotated and the new tree installed as /var/db/etcupdate/current after the update command has completed. Reported by: dim, np (and many others) Reviewed by: imp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29843
* mprutil: add big endian supportAlfredo Dal'Ava Junior2021-04-205-46/+90
| | | | | | | | | | | | | | | This fix mprutil on big endian platforms, as follow up of D25785. Flash operations are still not working, such as MPI2_FUNCTION_FW_UPLOAD failing due to timeout. Firmware version used during tests: 16.00.01.00 Submitted by: Andre Fernando da Silva <andre.silva@eldorado.org.br> Reviewed by: luporl, Sreekanth Reddy <sreekanth.reddy@broadcom.com> (by e-mail) Sponsored by: Eldorado Research Institute (eldorado.org.br) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D26040
* config: style for '\0' and NULLWarner Losh2021-04-191-9/+9
| | | | | | | | | | Use NULL for pointers instead of '0' (though hey are the same thing in these cases). Ditto for using the zero character '\0' instead of a naked 0 (ditto). Reviewed by: markj@ Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D29847
* bsdinstall: restore time selection screenYuri Pankov2021-04-191-2/+2
| | | | | | | | | | | Apparently new dialog does not like the height of 2 for the timebox widget, use 0 (minimum size) instead. Do the same for calendar widget as it does not change the appearance and to prevent possible future surprises. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D29720
* bhyve.8: Fix mandoc -Tlint issuesMateusz Piotrowski2021-04-191-6/+5
| | | | | | | While here, keep network backends section consistent with other sections. MFC after: 2 weeks
* bhyve: Document the format for HD audio backendsMateusz Piotrowski2021-04-191-3/+12
| | | | | | - This change is done for consistency with other backend definitions. MFC after: 2 weeks
* bhyve.8: Improve AHCI backends documentationMateusz Piotrowski2021-04-191-6/+20
| | | | | | - Document the backend format. MFC after: 2 weeks
* bhyve.8: Improve documentation of NVME backendMateusz Piotrowski2021-04-191-10/+33
| | | | | | | - Document the configuration format. - Document two additional configuration options: eui64 and dsm. MFC after: 2 weeks
* bhyve.8: Improve framebuffer backends descriptionMateusz Piotrowski2021-04-191-23/+39
| | | | | | | | | - Use appropriate mdoc macros - Document that tcp= is a synonym to rfb= (tcp is used in the examples, but never mentioned) - Clarify the IP address specification MFC after: 2 weeks
* bhyve.8: Clean up virtio console device backends descriptionMateusz Piotrowski2021-04-191-6/+12
| | | | MFC after: 2 weeks
* bhyve.8: Clean up TTY, boot ROM, and pass-through descriptionsMateusz Piotrowski2021-04-191-7/+7
| | | | MFC after: 2 weeks
* bhyve.8: Clean up 9P device backends sectionMateusz Piotrowski2021-04-191-4/+7
| | | | MFC after: 2 weeks
* bhyve.8: Clean up SCSI device backends sectionMateusz Piotrowski2021-04-191-4/+7
| | | | MFC after: 2 weeks
* bhyve.8: Clean up block storage device backends descriptionMateusz Piotrowski2021-04-191-11/+14
| | | | MFC after: 2 weeks
* bhyve.8: Clean up network backends sectionMateusz Piotrowski2021-04-181-16/+39
| | | | | | | | - Reformat the format lists, use appropriate mdoc macros for readability. - Add a missing Oxford comma. MFC after: 2 weeks
* bhyve.8: Improve emulation description of the -s flagMateusz Piotrowski2021-04-181-27/+27
| | | | | | | | | | | | | - Set width of the list to the longest key word for readability. - Separate descriptions of amd_hostbridge and hostbridge emulations. Also, wordsmith their descriptions for consistency with other entries. - Use Cm instead of Li for command modifiers. - Do not stylize AMD with Li, there's no need to do it. - Mention COM3 and COM4 in the definition of lpc. - Fix a typo in the definition of ahci-hd ("hard drive" instead of "hard-drive"). MFC after: 2 weeks
* bhyve.8: Clean up the slot description of -sMateusz Piotrowski2021-04-181-7/+26
| | | | | | | | Also, remove the macros of the nested list which contained slot, emulation and conf. This decreases the indention of the -s description. It was necessary to clean up the slot description. MFC after: 2 weeks
* bhyve.8: Clean-up synopsis of -sMateusz Piotrowski2021-04-181-3/+3
| | | | | | | - Document "-s help" separately for readability. - Use appropriate mdoc macros. MFC after: 2 weeks
* bhyve.8: Fix indention in the signals tableMateusz Piotrowski2021-04-181-1/+1
| | | | MFC after: 2 weeks
* bhyve.8: Clean up description of -rMateusz Piotrowski2021-04-181-2/+2
| | | | | | There is no need to wrap those flags in Op macros. MFC after: 2 weeks
* bhyve.8: Fix the synopsis of -pMateusz Piotrowski2021-04-181-1/+1
| | | | | | Use appropriate mdoc macros. MFC after: 2 weeks
* bhyve.8: Improve the description of the -m flagMateusz Piotrowski2021-04-181-7/+15
| | | | | | | - Stylize the synopsis with proper mdoc macros - Do some wordsmithing on the description for consistency. MFC after: 2 weeks
* bhyve.8: Improve the description and synopsis of -lMateusz Piotrowski2021-04-181-8/+13
| | | | | | | | | | | - Describe "-l help" separately for readability. - List all the supported comX devices explicitly - Use Cm instead of Ar for command modifiers (i.e., literal values a user can specify as an argument to the command). - Explain where to get more information about the possible values of the conf argument. MFC after: 2 weeks
* bhyve.8: Sort the options in the OPTIONS sectionMateusz Piotrowski2021-04-181-17/+17
| | | | | | | No content change intended. Just moving the option descriptions around to follow the order suggested by style(9). MFC after: 2 weeks
* bhyve: Improve the option description in the usage messageMateusz Piotrowski2021-04-181-8/+9
| | | | | | | | - Sort options as suggested by style(9) - Capitalize some words like CPU and HLT - Add a missing description for the -G flag MFC after: 2 weeks
* bhyve: Fix synopsis in the usage messageMateusz Piotrowski2021-04-181-3/+3
| | | | | | | | | | | In particular: - Sort short options to align with style(9) - Add two missing flags: -G and -r - Drop unnecessary angle brackets for consistency - Rename the "vm" argument to vmname for consistency with the manual page MFC after: 2 weeks
* bhyve.8: Make synopsis more readableMateusz Piotrowski2021-04-181-4/+8
| | | | | | | | | There is no need to squeeze all the possible options into one synopsis entry. Let "-l help" and "-s help" be listed separately. While here, keep -s and its arguments on the same line. MFC after: 2 weeks
* jail.conf(5): emphasize where to find jail parametersFernando Apesteguía2021-04-181-4/+5
| | | | | | | | | | | | | | Some people expect jail.conf(5) to have a list of jail parameters. jail(8) contains a comprehensive list of all parameters to be used during jail invocation or in jail.conf. Highlighting where to look for jail parameters seems a reasonable solution. PR: 244569 Reported by: joneum@ Approved by: 0mp (manpages, mentor) Reviewed by: debdrup Differential Revision: https://reviews.freebsd.org/D28701
* usr.sbin/wpa: complete the revert of wpa importCy Schubert2021-04-177-24/+8
| | | | This completes the revert of b51f459a2098622c31ed54f5c1bf0e03efce403b.
* Revert wpa import.Cy Schubert2021-04-177-8/+24
| | | | | | | b51f459a2098622c31ed54f5c1bf0e03efce403b resulted in a mismerge due to having to do a remerge because my tree was over a week out of date. Changes that were made to fix the build were lost in the remerge resulting in build errors that were fixed a week ago.
* lpd: Update SYNOPSIS with new flagChris Rees2021-04-151-1/+1
| | | | Reported by: 0mp
* lpd.8: Chase Dd-- took old value when mergingChris Rees2021-04-151-1/+1
|
* lpd: Add -F flag to prevent daemonizingChris Rees2021-04-152-7/+26
| | | | | | | | | This is necessary for use with supervision, e.g. runit. I chose -F simply because that is what the folks at LPRng use. Approved by: pfg, gad, ngie Differential Revision: https://reviews.freebsd.org/D29566
* bhyve: implement rdmsr for MSR_IA32_FEATURE_CONTROLCorvin Köhne2021-04-151-0/+8
| | | | | | | | | | | | | | Without the -w option, Windows guests crash on boot. This is caused by a rdmsr of MSR_IA32_FEATURE_CONTROL. Windows checks this MSR to determine enabled VMX features. This MSR isn't emulated in bhyve, so a #GP exception is injected which causes Windows to crash. Fix by returning a rdmsr of MSR_IA32_FEATURE_CONTROL with Lock Bit set and VMX disabled to informWindows that VMX isn't available. Reviewed by: jhb, grehan (bhyve) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29665