Enji Cooper
5a7c7dc571
bsdinstall(8): fix manpage issues
...
- Start new sentences on new lines.
- Separate e.g. (more of an igor thing) with commas, and rewrite some examples
not to be enclosed in parentheses.
Reported by: igor, make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
2017-05-23 08:01:11 +00:00
Enji Cooper
ab9ff47abc
sade(8): start new sentence on new line
...
Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
2017-05-23 07:50:42 +00:00
Enji Cooper
d6f6b20128
style(9): sort headers
...
MFC after: 2 weeks
MFC with: r318693
Sponsored by: Dell EMC Isilon
2017-05-23 06:05:54 +00:00
Enji Cooper
d547c56fdf
Some minor style(9) fixes
...
- Wrap at <80 columns.
- Sort by type
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
2017-05-23 06:04:38 +00:00
Roger Pau Monné
d7640440fb
bsdinstall: do not use distextract in scripted mode
...
It requires a tty, which might not be available in scripted installs. Instead
extract the sets manually using tar.
Reviewed by: tsoome
Sponsored by: Citrix Systems R&D
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D10736
2017-05-22 11:41:17 +00:00
Roger Pau Monné
2f34d6c344
bsdinstall: mount is not needed for the ZFS install case
...
Because the datasets are already mounted by zfsboot, and the mount script
doesn't know anything about ZFS. Also do not execute the "umount" script for
ZFS for the same reasons.
Reviewed by: dteske, tsoome
Sponsored by: Citrix Systems R&D
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D10738
2017-05-22 11:38:39 +00:00
Marcelo Araujo
63128851f3
Use nitems() from sys/param.h.
...
Reviewed by: ngie
MFC after: 2 weeks.
Differential Revision: https://reviews.freebsd.org/D9942
2017-05-03 14:03:46 +00:00
Conrad Meyer
6c546e77b6
bsdinstall(8): Sprinkle a snprintf to fixed size buffer
...
Use a snprintf to write an environment variable to a fixed-size buffer to
avoid stack overflow.
Reported by: Coverity (CWE-120)
CID: 1238926
Sponsored by: Dell EMC Isilon
2017-04-14 00:36:45 +00:00
Bartek Rutkowski
2434a0528a
Revert changes introduced in r314036 on demand by jhb and bapt.
...
Approved by: bapt, jhb
2017-03-17 11:45:46 +00:00
Rodney W. Grimes
ce9f2d31b3
Convert absolute links to relative links.
...
Style.Makefile(9) has been ignored to produce minimal diffs.
Approved by: grehan (mentor)
MFC after: 1 week
2017-03-07 05:10:38 +00:00
Bartek Rutkowski
4bf41040fd
Enable bsdinstall hardening options by default.
...
As discussed previously, in order to introduce new OS hardening
defaults, we've added them to bsdinstall in 'off by default' mode.
It has been there for a while, so the next step is to change them
to 'on by defaul' mode, so that in future we could simply enable
them in base OS.
Reviewed by: brd
Approved by: adrian
Differential Revision: https://reviews.freebsd.org/D9641
2017-02-21 09:37:33 +00:00
Bartek Rutkowski
955255728c
Add 0-8 as shortcuts for jumping to menu items in the hardening menu.
...
Submitted by: skreuzer
Reviewed by: allanjude, robak
Approved by: allanjude
Differential Revision: https://reviews.freebsd.org/D6826
2017-02-16 19:58:02 +00:00
Renato Botelho
371ce0ebc2
bsdinstall: Make sure chroot filesystems are umounted after use
...
* DISTDIR_IS_UNIONFS is set every time BSDINSTALL_DISTDIR is mounted inside
BSDINSTALL_CHROOT. Use this flag to decide if it needs to be umounted
* BSDINSTALL_CHROOT/dev is mounted when 'bsdinstall mount' is called, there is
no need to mount it again when user goes to shell after installation
Reviewed by: allanjude
Obtained from: pfSense
MFC after: 1 week
Sponsored by: Rubicon Communications (Netgate)
Differential Revision: https://reviews.freebsd.org/D8573
2017-02-08 17:03:52 +00:00
Ravi Pokala
0ee82391df
Fix indentation (only line in file w/ 8-space indent rather than hard-tab).
...
MFH: 1 week
2017-02-08 00:02:54 +00:00
Yoshihiro Takahashi
2b375b4edd
Remove pc98 support completely.
...
I thank all developers and contributors for pc98.
Relnotes: yes
2017-01-28 02:22:15 +00:00
Devin Teske
a7cc56803c
Revert r309918 -- modern POSIX has deprecated -<#>/+<#> syntax
...
Special thanks to: jilles
2016-12-13 22:31:49 +00:00
Devin Teske
f3a8471e5f
It's completely pointless to replace newlines with space
...
(this is done automatically for you upon shell expansion)
2016-12-13 02:56:52 +00:00
Devin Teske
be094a3204
The flags of a WLAN need to be quoted (they contain things like brackets)
2016-12-13 02:54:44 +00:00
Devin Teske
19dbb0ba18
Simplify single-line if statements
2016-12-13 02:48:14 +00:00
Devin Teske
afcce2f52d
Simplify loop by moving predicate to clause
2016-12-13 02:47:39 +00:00
Devin Teske
b46ca7cefe
Wordsmithing
2016-12-13 02:46:36 +00:00
Devin Teske
a9d334210f
Why test $? when you can test the command
2016-12-13 02:45:52 +00:00
Devin Teske
6ef8ca674f
Restore previous comment
2016-12-13 02:45:07 +00:00
Devin Teske
94f5aec600
Both simplify bringup of interface after changes and catch errors in debug
2016-12-13 02:44:33 +00:00
Devin Teske
b9f60aba8b
Calculate proper size of menu list dialog
2016-12-13 02:42:10 +00:00
Devin Teske
9a46c67aed
There's an API function for catching errors and displaying them or
...
logging them to debug output
2016-12-13 02:40:54 +00:00
Devin Teske
7e1166de96
There's an API function for displaying pauses
2016-12-13 02:30:24 +00:00
Devin Teske
d79a135578
There's an API function for displaying yes/no dialogs
2016-12-13 02:29:20 +00:00
Devin Teske
1d92999c48
There's an API function for displaying errors
2016-12-13 02:27:38 +00:00
Devin Teske
35af83c188
Comment
2016-12-13 02:25:23 +00:00
Devin Teske
b45548a80e
Whitespace alignment
2016-12-13 02:23:48 +00:00
Devin Teske
d5fddc4dcb
Relying on dialog auto-sizing (width/height/rows = 0) is a mistake
...
Use the provided API for calculating the appropriate size of menus
2016-12-13 02:22:21 +00:00
Devin Teske
7599c85424
Remove unnecessary quotes
2016-12-13 02:16:00 +00:00
Devin Teske
1095816ec3
Add missing quotes
2016-12-13 02:15:36 +00:00
Devin Teske
01a2404c35
In awk, if you're going to append a newline to your printf
...
AND you're going to print only the argument, just use print
2016-12-13 02:14:40 +00:00
Devin Teske
dba958af5d
This statement has too many backslashes
2016-12-13 02:13:20 +00:00
Devin Teske
be34885e2a
Neither printf (and as is commonly known) nor print need parens in awk
2016-12-13 02:12:00 +00:00
Devin Teske
5943bcd19f
Whitespace and alignment
2016-12-13 02:11:09 +00:00
Devin Teske
191441eed8
You don't need parentheses for awk's printf
2016-12-13 02:07:12 +00:00
Devin Teske
0724c87c95
Continued resolution of conveluted statement
...
We shouldn't be coding things like "x || (x && x) || x || x || x ..."
2016-12-13 02:04:50 +00:00
Devin Teske
32c34b0361
These two error messages have always been backwards since inception
2016-12-13 02:02:14 +00:00
Devin Teske
7f513d3675
Why use $? when you can use the command itself
2016-12-13 01:59:35 +00:00
Devin Teske
6b77f63e5d
If the first ping succeeded, why on Earth should we ping it again?
2016-12-13 01:56:28 +00:00
Devin Teske
a1a6fec1c7
Start deconstructing a conveluted hunk of code
2016-12-13 01:54:44 +00:00
Devin Teske
19cae84e23
Remove completely unnecesary parentheses
2016-12-13 01:52:10 +00:00
Devin Teske
751993945a
Why repeat yourself when you can send stderr to the same place as stdout?
2016-12-13 01:50:22 +00:00
Devin Teske
66ef7d9455
Properly quote variable
2016-12-13 01:44:18 +00:00
Devin Teske
a51195769a
Use more generic f_yesno() from provided API
2016-12-13 01:42:13 +00:00
Devin Teske
f52733d46e
The output of dialog needs to be sanitized
...
for portability/compatibility requirements
2016-12-13 01:41:06 +00:00
Devin Teske
f20b7768fc
Whitespace alignment
2016-12-13 01:39:09 +00:00