CVS: cvs.openbsd.org: src

2018-07-10 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/10 08:22:36

Modified files:
distrib/miniroot: install.sub 

Log message:
Tweak comments and explain some not so obvious things.



CVS: cvs.openbsd.org: src

2018-07-09 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/09 10:12:23

Modified files:
distrib/miniroot: install.sub 

Log message:
Rename the THESETS variable to ALLSETS because it holds the list
of all legitimate OpenBSD set files. That helps to better understand
the code in context.

OK halex krw tb



CVS: cvs.openbsd.org: src

2018-07-09 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/09 07:45:54

Modified files:
distrib/miniroot: install.sub 

Log message:
Explain in more detail, how select_sets() is involved when the current bsd.rd
is used to download/verify/install a bsd.rd of a new release.



CVS: cvs.openbsd.org: src

2018-07-09 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/09 06:32:30

Modified files:
distrib/miniroot: install.sub 

Log message:
Explain in more detail, what sane_install() actually does.



CVS: cvs.openbsd.org: src

2018-07-09 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/09 05:57:05

Modified files:
distrib/miniroot: install.sub 

Log message:
Extend the v4_defroute() function description and make the fallback to
the previous default route more obvious by using an if-then-else block.



CVS: cvs.openbsd.org: src

2018-07-09 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/09 05:19:46

Modified files:
distrib/miniroot: install.sub 

Log message:
Comments and function descriptions.



CVS: cvs.openbsd.org: src

2018-07-09 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/09 04:23:05

Modified files:
distrib/miniroot: install.sub 

Log message:
Improve comments and function descriptions.



CVS: cvs.openbsd.org: src

2018-07-09 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/09 02:25:08

Modified files:
distrib/miniroot: install.sub 

Log message:
Comments



CVS: cvs.openbsd.org: src

2018-07-08 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/08 15:25:59

Modified files:
distrib/miniroot: install.sub 

Log message:
The AUTO variable is a boolean indicating whether or not autoinstall is active
Rename AUTO to AI so "AI" is used consistently throuhout the installer script
for autoinstall releated variables.

OK krw tb



CVS: cvs.openbsd.org: src

2018-07-08 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/08 13:59:37

Modified files:
distrib/miniroot: install.sub 

Log message:
Compact the function description.
Turn the ask_until from type Korn shell to Bourne/POSIX mode.
Use : instead of true in the while-loop to be consistent.

OK krw halex tb



CVS: cvs.openbsd.org: src

2018-07-08 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/08 07:42:47

Modified files:
distrib/miniroot: install.sub 

Log message:
Whitespace



CVS: cvs.openbsd.org: src

2018-07-07 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/07 08:39:23

Modified files:
distrib/miniroot: install.sub 

Log message:
Always quote both parameters of ask() which picks the question and
default answer parameters via $1 and $2.

OK tb



CVS: cvs.openbsd.org: src

2018-07-07 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/07 08:35:06

Modified files:
distrib/miniroot: install.sub 

Log message:
Make sure the question parameter is set to be able to search for an answer
in the response file.

OK krw tb



CVS: cvs.openbsd.org: src

2018-07-07 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/07 07:11:47

Modified files:
distrib/miniroot: install.sub 

Log message:
Compact function description.



CVS: cvs.openbsd.org: src

2018-07-07 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/07 06:54:33

Modified files:
distrib/miniroot: install.sub 

Log message:
Trim function description by leaving out parts that are already
explained for _ask(). Give a hint why _ask() is called from within
a while-loop.



CVS: cvs.openbsd.org: src

2018-07-07 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/07 04:26:28

Modified files:
distrib/miniroot: install.sub 

Log message:
Be more precise explaining that _ask() captures user responses
interactively and also from the response file.



CVS: cvs.openbsd.org: src

2018-07-07 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/07 03:25:00

Modified files:
distrib/miniroot: install.sub 

Log message:
Tweak comments



CVS: cvs.openbsd.org: src

2018-07-06 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/06 15:07:46

Modified files:
distrib/miniroot: install.sub 

Log message:
Improve the description of another rather esoteric piece of shell script code.



CVS: cvs.openbsd.org: src

2018-07-06 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/06 14:13:42

Modified files:
distrib/miniroot: install.sub 

Log message:
Tweak comments and explain, why HTTP_SETDIR is made known to the webserver
where the response file is downloaded from.



CVS: cvs.openbsd.org: src

2018-07-06 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/06 13:42:01

Modified files:
distrib/miniroot: install.sub 

Log message:
Tweak comments and spacing.



CVS: cvs.openbsd.org: src

2018-07-06 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/06 13:16:28

Modified files:
distrib/miniroot: install.sub 

Log message:
Tweak comment



CVS: cvs.openbsd.org: src

2018-07-02 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/02 14:47:46

Modified files:
distrib/miniroot: install.sub 

Log message:
Be more precise in the function description and rename _iflist to
_if_list to be consistent with other similar cases.



CVS: cvs.openbsd.org: src

2018-07-02 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/02 14:21:29

Modified files:
distrib/miniroot: install.sub 

Log message:
more descriptive comment



CVS: cvs.openbsd.org: src

2018-07-02 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/02 13:47:28

Modified files:
distrib/miniroot: install.sub 

Log message:
Be more precise about the expected input.



CVS: cvs.openbsd.org: src

2018-07-02 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/02 13:11:56

Modified files:
distrib/miniroot: install.sub 

Log message:
Quote first parameter of isin().



CVS: cvs.openbsd.org: src

2018-07-01 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/01 15:00:18

Modified files:
distrib/miniroot: install.sub 

Log message:
Comments



CVS: cvs.openbsd.org: src

2018-07-01 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/07/01 14:45:22

Modified files:
distrib/miniroot: install.sub 

Log message:
Explain and demystify some darker corners of the installer script.



CVS: cvs.openbsd.org: src

2018-06-16 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/06/16 10:08:50

Modified files:
distrib/miniroot: install.sub 

Log message:
Allow to enter a DUID as answer to the "Which disk is the root disk?"
question during upgrade.

suggested by abieber
positive feedback deraadt krw
ok tb abieber



CVS: cvs.openbsd.org: src

2018-06-16 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/06/16 09:56:51

Modified files:
distrib/miniroot: install.sub 

Log message:
Zap whitespaces

found by deraadt



CVS: cvs.openbsd.org: src

2018-06-03 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/06/03 10:54:55

Modified files:
distrib/sets/lists/base: md.amd64 md.arm64 md.armv7 md.i386 
 md.sparc64 mi 
distrib/sets/lists/comp: clang.amd64 clang.arm64 clang.armv7 
 clang.i386 clang.sparc64 mi 

Log message:
On amd64, arm64, armv7, i386 and sparc64 /usr/bin/{cc,c++,clang++,clang-cpp}
and /usr/libexec/cpp are supposed to be hardlinks of /usr/bin/clang. The move
of /usr/bin/cc to the base set to allow kernel relinking resulted in it being
a copy and not a hardlink. Move the other files to the base set too to ensure
all are hardlinks.

Noticed by Anthony Coulter
OK deraadt



CVS: cvs.openbsd.org: src

2018-05-01 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/05/01 03:45:39

Modified files:
libexec/reorder_kernel: reorder_kernel.sh 

Log message:
Add an explanation to relink.log what a failed checksum of /bsd
means and show how to re-enable KARL.

Prodded by and OK deraadt
Feedback and OK tb



CVS: cvs.openbsd.org: src

2018-04-28 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/04/28 16:38:32

Modified files:
etc: netstart 

Log message:
Add a proper usage() function.

Suggested by and OK jmc.
OK tb



CVS: cvs.openbsd.org: src

2018-02-21 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/02/21 12:57:21

Modified files:
etc: netstart 

Log message:
Tweak comments.

OK tb



CVS: cvs.openbsd.org: src

2018-02-21 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/02/21 12:54:25

Modified files:
distrib/miniroot: install.sub 

Log message:
If there is one interface, and it is configured via dhcp, and the lease
contains both domain-name and domain-search options make sure to use the
first domain-name entry (there might be multiple).

This issue was noticed by Raf Czlonka, thanks for reporting
Discussed with, tested and OK krw



CVS: cvs.openbsd.org: src

2018-02-21 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/02/21 13:02:37

Modified files:
distrib/miniroot: install.sub 

Log message:
Delete the kernel link kit tgz after extraction to align with the
libexec/reorder_kernel script.

OK tb



CVS: cvs.openbsd.org: src

2018-02-19 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/02/19 16:42:29

Modified files:
etc: netstart 

Log message:
Write warning/error messages to stderr and end them with a fullstop.

OK tb



CVS: cvs.openbsd.org: src

2018-02-19 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/02/19 14:47:43

Modified files:
etc: netstart 

Log message:
- use specific patterns when looping over /etc/hostname.if files
to skip backup or temp files.
- test if the patterns matched actual files
- warn if ifcreate() fails on an interface and continue with the
subsequent interfaces in the list instead of return'ing

OK dlg sthen tb



CVS: cvs.openbsd.org: src

2018-02-18 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/02/18 11:52:02

Modified files:
etc: rc 

Log message:
Remove unecessary line continuation markers after || and &&



CVS: cvs.openbsd.org: src

2018-02-17 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/02/17 17:43:16

Modified files:
distrib/miniroot: install.sub 

Log message:
Create interfaces before processing the hostname.if file in ifstart().

This ensures, that IPv6 is configured for dynamically created network
interfaces like 'vlan' which would otherwise not yet exist at the time
parse_hn_line() checks for IPv6 capability of an interface before
applying the inet6 configuration from the hostname.if.

Found out, tested and OK naddy



CVS: cvs.openbsd.org: src

2018-02-17 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/02/17 12:05:41

Modified files:
distrib/miniroot: install.sub 

Log message:
Since rev 1.543 of dhclient it sends the 'host-name' by default.

- remove the leftover _hn variable from dhcp_request()
- remove the "$_name" parameter when using dhcp_request() in v4_config()
- change comments of v{4,6}_config() to reflect the purpose of _name

OK krw tb



Re: CVS: cvs.openbsd.org: src

2018-02-17 Thread Robert Peichaer
On Sat, Feb 17, 2018 at 06:11:03AM -0700, Robert Peichaer wrote:
> CVSROOT:  /cvs
> Module name:  src
> Changes by:   r...@cvs.openbsd.org2018/02/17 06:11:03
> 
> Modified files:
>   etc: netstart 
> 
> Log message:
> - Add descriptions for the new functions ifcreate() and vifscreate()
> - In ifcreate() use the exit code of the {} block directly
> - In vifscreate(), use the ifconfig -C output directly in the for _vif loop
> - Remove superfluous and somewhat confusing comment
> 
> OK dlg kn sthen

was also OK tb mpi 



CVS: cvs.openbsd.org: src

2018-02-17 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/02/17 06:11:03

Modified files:
etc: netstart 

Log message:
- Add descriptions for the new functions ifcreate() and vifscreate()
- In ifcreate() use the exit code of the {} block directly
- In vifscreate(), use the ifconfig -C output directly in the for _vif loop
- Remove superfluous and somewhat confusing comment

OK dlg kn sthen



CVS: cvs.openbsd.org: src

2018-01-14 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/01/14 05:12:52

Modified files:
distrib/miniroot: install.sub 

Log message:
Prefetched sets are stored by root, but are read by an unprivileged
user during the actual install phase. Add a check to the selection
of the prefetch area to ensure the unprivleged user can read files
from there.

Move the selection logic to its own function prefetcharea_fs_list()
which returns a unique list of candidate filesystems, or with rc=1.
While at it, remove /var/tmp from the potential list of candidates
because it's a symbolic link to /tmp since 2014.

Change install_files() to loop over the candidates and check if it
can read a test file, otherwise clean up and skip this filesystem.

Problem found by benno@ whose upgrade failed due to /usr/obj being
owned by build:wobj and permissions that prevented the unprivileged
user to read the prefetched set files from there.

discussed with and OK benno@ halex@ tb@



CVS: cvs.openbsd.org: src

2018-01-11 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/01/11 15:44:44

Modified files:
etc/rc.d   : iked relayd switchd vmd 

Log message:
Comments



CVS: cvs.openbsd.org: src

2018-01-11 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/01/11 14:09:26

Modified files:
etc/rc.d   : amd bootparamd iked isakmpd ldattach mopd 
 mountd nfsd rarpd spamd spamlogd unbound ypbind 
 yppasswdd ypserv 

Log message:
- change [] tests to [[]]
- change -a, -o to &&, || inside [[]]
- remove unecessary quoting inside [[]]
- remove X"" constructs inside [[]]
- remove \ (line continuation) in case of &&, || and pipes
- replace backticks with $()

discussed with and OK aja@
OK tb



CVS: cvs.openbsd.org: src

2018-01-11 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/01/11 12:52:12

Modified files:
etc/rc.d   : amd apmd bgpd bootparamd cron dhcpd dhcrelay 
 dhcrelay6 dvmrpd eigrpd ftpd ftpproxy ftpproxy6 
 hostapd hotplugd httpd identd ifstated iked 
 inetd isakmpd iscsid ldapd ldattach ldomd ldpd 
 lockd lpd mopd mountd mrouted nfsd npppd nsd 
 ntpd ospf6d ospfd pflogd portmap radiusd rarpd 
 rbootd rebound relayd ripd route6d rtadvd 
 sasyncd sensorsd slaacd slowcgi smtpd sndiod 
 snmpd spamd spamlogd sshd statd switchd syslogd 
 tftpd tftpproxy unbound vmd watchdogd wsmoused 
 xenodm ypbind ypldap yppasswdd ypserv 

Log message:
Change the shebang line from /bin/sh to /bin/ksh in all base rc.d
daemon scripts.

discussed with and OK aja@
OK tb



CVS: cvs.openbsd.org: src

2018-01-03 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2018/01/03 03:22:38

Modified files:
distrib/miniroot: install.sub 
distrib/sparc64/common: install.md 

Log message:
Always present the same question at the end of installs or upgrades.
Offer to exit to shell, halt or reboot the system, where 'reboot' is
the default answer. Change default answer to 'halt' for installs if
MDHALT is set to 'y'.

suggested by landry@
OK halex@



CVS: cvs.openbsd.org: src

2017-12-22 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/12/22 12:41:49

Modified files:
distrib/miniroot: install.sub 

Log message:
Cope with the fact, that the DHCLIENT route label is gone which
helped to find out if the default route was configured by dhclient.

Check if the interface connected to the default route is in the
dhcp interface group which accomplishes the same functionality.

With feedback from and OK krw@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/12/18 15:48:28

Modified files:
distrib/miniroot: install.sub 

Log message:
Change the question at the end of installs and upgrades to present a choice
between exiting to the shell or to reboot the latter being the default.
(On sparc64 the second choice is to halt the system which leaves it at the
OpenBoot PROM prompt)

While there add a newline after the CONGRATULATIONS message.

OK tb@
positive feedback naddy@ deraadt@ giovanni@



CVS: cvs.openbsd.org: src

2017-12-17 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/12/17 11:29:56

Modified files:
distrib/miniroot: install.sub 
distrib/sparc64/common: install.md 

Log message:
Add a new question "Escape to shell before reboot? [no]" at the end of
the install and upgrade process.

"no" or [enter] reboots the system
"yes" leaves the install or upgrade at the shell prompt

On selected architectures, sparc64 being the only so far, the system
is halted instead of rebooted.

autoinstall(8) is NOT affected by this new question as it reboots the
system automatically already.

Suggested by and OK deraadt@, tb@ phessler@
Feedback on sparc64 by stsp@
Positive feedback pea@ landry@



CVS: cvs.openbsd.org: src

2017-12-17 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/12/17 10:03:52

Modified files:
distrib/miniroot: install.sub 

Log message:
allow '-' in usernames

requested and OK aja
OK halex@



CVS: cvs.openbsd.org: src

2017-11-06 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/11/06 02:04:18

Modified files:
etc: rc 

Log message:
Use a variable for /usr/share/relink

OK tb@



CVS: cvs.openbsd.org: src

2017-11-05 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/11/05 04:16:16

Modified files:
distrib/miniroot: install.sub 

Log message:
Fix http server selection from the list of mirrors. This broke in
r1.989 in a way that when selecting a mirror from the list by
entering a number, the selection was not actually set as answer.

Noted by and OK tb@



CVS: cvs.openbsd.org: src

2017-11-05 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/11/05 03:58:39

Modified files:
etc: ksh.kshrc 

Log message:
Remove the ':' at the beginning of ksh.kshrc.

prodded by Raf Czlonka
OK tb@



CVS: cvs.openbsd.org: src

2017-11-05 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/11/05 03:29:24

Modified files:
distrib/miniroot: install.sub 
distrib/sets/lists/base: mi 
distrib/syspatch: README 
etc: Makefile rc 
etc/mtree  : 4.4BSD.dist 
libexec/ld.so  : Makefile 
libexec/reorder_kernel: reorder_kernel.sh 
share/mk   : bsd.lib.mk 
usr.sbin/config: mkmakefile.c 

Log message:
Consolidate lib.so.*.a, ld.so.a and the kernel relink kit into
one location under /usr/share/relink.

Be more specific in src/etc/rc reorder_libs() what filesystems
need r/w remount and ensure that their mount state is restored.

Idea and positive feedback from deraadt@
OK aja@ tb@



CVS: cvs.openbsd.org: src

2017-11-02 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/11/02 09:35:20

Modified files:
distrib/miniroot: install.sub 

Log message:
Fix this test by adding _http_proto to INSTALL_MIRROR.



CVS: cvs.openbsd.org: www

2017-11-01 Thread Robert Peichaer
CVSROOT:/cvs
Module name:www
Changes by: r...@cvs.openbsd.org2017/11/01 09:33:07

Modified files:
.  : hackathons.html 

Log message:
p2k17 is a ports hackathon



CVS: cvs.openbsd.org: src

2017-10-22 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/10/22 02:23:20

Modified files:
distrib/miniroot: install.sub 

Log message:
On systems without dhclient, ask IPv4 question again if 'dhcp' was choosen.

Spotted by halex@



CVS: cvs.openbsd.org: src

2017-10-21 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/10/21 14:08:54

Modified files:
distrib/miniroot: install.sub 

Log message:
Change v4_config() and v6_config()
- to support CIDR notation for the answers to the
"IPv4 address for ?" and "IPv6 address for ?" questions
- to not ask for netmask and prefix lenght if CIDR is used
- to ask the questions again if ifconfig fails with the provided input

Triggered by a report from landry@.
Using ideas from sthen@
OK deraadt@ tb@



CVS: cvs.openbsd.org: src

2017-10-13 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/10/13 12:06:28

Modified files:
distrib/miniroot: dot.profile 

Log message:
Move extraction of rootdisk information into the DONEPROFILE if-block.

OK tb@



CVS: cvs.openbsd.org: src

2017-10-13 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/10/13 11:31:26

Modified files:
distrib/miniroot: dot.profile 

Log message:
Comment trap handlers



CVS: cvs.openbsd.org: src

2017-10-13 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/10/13 11:23:01

Modified files:
distrib/miniroot: dot.profile 

Log message:
Tweak comments



CVS: cvs.openbsd.org: src

2017-10-13 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/10/13 11:13:40

Modified files:
distrib/miniroot: dot.profile 

Log message:
Add a comment for slaacd(8) start and replace the if-then-fi block
with a [[ test ]] && command construct.



CVS: cvs.openbsd.org: src

2017-10-12 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/10/12 12:14:05

Modified files:
etc: rc 

Log message:
The testprogram for ld.so reordering is executed in tmpdir.
Move tmpdir for reordering library from /tmp to /usr/lib.
This allows to have /tmp mounted noexec.

prompted by reports on misc@
OK deraadt@ tj@ tb@



CVS: cvs.openbsd.org: src

2017-10-10 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/10/10 13:07:50

Modified files:
etc: rc 

Log message:
Move comment line and spacing.



CVS: cvs.openbsd.org: src

2017-10-10 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/10/10 12:55:22

Modified files:
distrib/miniroot: install.sub 

Log message:
Allow to boot into the existing bsd.rd and to download, verify
and upgrade to the bsd.rd of the next release.

The installer detects this bsd.rd only upgrade if the answer to
the 'Server directory?' question points to the sets of the next
release.

It then limits the set selection to the bsd.rd file, verifies it
using the on-disk signify key of the next release and makes a
backup of the existing bsd.rd before installing it.

Idea from and OK deraadt@
OK benno@



CVS: cvs.openbsd.org: www

2017-10-01 Thread Robert Peichaer
CVSROOT:/cvs
Module name:www
Changes by: r...@cvs.openbsd.org2017/10/01 04:35:35

Modified files:
.  : 62.html 

Log message:
Add various installer improvements.



CVS: cvs.openbsd.org: src

2017-08-29 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/08/29 10:56:13

Modified files:
etc: rc 

Log message:
Based on previous work from deraadt, add relinking of ld.so to
reorder_libs() resulting in a unique ld.so on every system start.

Idea from and OK deraadt@
OK tb@



CVS: cvs.openbsd.org: src

2017-08-25 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/08/25 12:59:55

Modified files:
libexec/reorder_kernel: reorder_kernel.sh 

Log message:
It's a standalone script now, so explicitly set a sane PATH.



CVS: cvs.openbsd.org: src

2017-08-25 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/08/25 12:27:41

Modified files:
libexec/reorder_kernel: reorder_kernel.sh 

Log message:
Fix detection whether /usr/share is on a nfs mounted filesystem.



CVS: cvs.openbsd.org: src

2017-08-25 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/08/25 12:21:30

Modified files:
distrib/miniroot: install.sub 

Log message:
Combine the commands to fetch and extract set files with the
following if-block to extract {x}etc.tgz using the '&&' operator
to ensure proper error handling.

Fixes the case found by miod, where a failed extraction of the
base set was not properly recognized.

OK miod, tb



CVS: cvs.openbsd.org: src

2017-08-21 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/08/21 15:24:11

Modified files:
etc: rc 
distrib/sets/lists/base: mi 
Added files:
libexec/reorder_kernel: Makefile reorder_kernel.sh 

Log message:
Move the kernel relinking code from /etc/rc into a seperate script
/usr/libexec/reorder_kernel. Requested by ajacoutot@ to be able to
relink the kernel from within syspatch(8).

OK deraadt@ tb@



CVS: cvs.openbsd.org: src

2017-08-21 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/08/21 15:14:37

src/libexec/reorder_kernel

Update of /cvs/src/libexec/reorder_kernel
In directory cvs.openbsd.org:/tmp/cvs-serv39986/reorder_kernel

Log Message:
Directory /cvs/src/libexec/reorder_kernel added to the repository



CVS: cvs.openbsd.org: src

2017-08-21 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/08/21 14:52:06

Modified files:
etc/mtree  : 4.4BSD.dist 

Log message:
add basedir of the kernel link-kit

requested by ajacoutot@
OK tb@



CVS: cvs.openbsd.org: src

2017-08-20 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/08/20 13:45:37

Modified files:
etc: rc 

Log message:
Simplify the code for stopping daemons listed in pkg_scripts in
reverse order on shutdown.

OK aja@ tb@



CVS: cvs.openbsd.org: src

2017-08-08 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/08/08 01:14:05

Modified files:
distrib/miniroot: install.sub 

Log message:
Fix a bug introduced in r1.1028 while switching enable_network()
from _hn to _if.

Found by Pontus Lundkvist



CVS: cvs.openbsd.org: src

2017-07-28 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/28 12:15:44

Modified files:
distrib/alpha/common: install.md 
distrib/amd64/common: install.md 
distrib/arm64/ramdisk: install.md 
distrib/armv7/ramdisk: install.md 
distrib/hppa   : install.md 
distrib/i386/common: install.md 
distrib/luna88k/ramdisk: install.md 
distrib/macppc/ramdisk: install.md 
distrib/miniroot: install.sub 
distrib/sgi/ramdisk: install.md 
distrib/sparc64/common: install.md 

Log message:
DEFAULTSETS, SANESETS and THESETS are set in the install.md scripts
according to the same logic for all architectures but sgi.

Consolidate setting them in one place in install.sub and incorporate
the sgi specific MDSETS and MDSANESETS.

Introduce MDSANESETS complementing MDSETS which makes the construction
of DEFAULTSETS, THESETS and SANESETS clearer in install.sub.

While here, adjust the comment about how MDSETS used now.

OK deraadt@



CVS: cvs.openbsd.org: src

2017-07-25 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/25 15:17:11

Modified files:
etc: netstart 
distrib/miniroot: install.sub 

Log message:
Finally remove backwards compat code to support the 'rtsol' keyword
in hostname.if(5)

OK mpi@ deraadt@ florian@
OK jmc@ from doc perspective



CVS: cvs.openbsd.org: src

2017-07-21 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/21 14:35:59

Modified files:
distrib/miniroot: install.sub 

Log message:
Rename _hn to AI_HOSTNAME and export it as global variable so it's
visible in the MODE.site scripts too.

This is useful for reporting back the autoinstall status at the end
of installs or upgrades from within the MODE.site scripts.

OK krw@ tb@



CVS: cvs.openbsd.org: src

2017-07-21 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/21 14:22:13

Modified files:
etc: netstart 
distrib/miniroot: install.sub 

Log message:
Align ifstart() in netstart and install.sub.

- in netstart, rename _file to _hn referencing hostname.if files
- in install.sub switch ifstart() to be used with _if instead of
_hn as parameter

ok krw@ tb@



CVS: cvs.openbsd.org: src

2017-07-21 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/21 10:02:26

Modified files:
distrib/miniroot: install.sub 

Log message:
autoinstall(8) related global variables are prefixed with AI_.
RESPFILE -> AI_RESPFILE

OK krw@ tb@



CVS: cvs.openbsd.org: src

2017-07-20 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/20 13:48:13

Modified files:
distrib/miniroot: install.sub 

Log message:
Move the execution of the {install,upgrade}.site script to the end
of the install/upgrade process.

OK tb@



CVS: cvs.openbsd.org: src

2017-07-18 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/18 10:29:44

Modified files:
etc: rc 

Log message:
Use numerical sysctl output to check for nfs mounts.

OK tb@



CVS: cvs.openbsd.org: src

2017-07-17 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/17 12:52:26

Modified files:
etc: rc 

Log message:
Tweak previous.



CVS: cvs.openbsd.org: src

2017-07-17 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/17 12:37:42

Modified files:
etc: rc 

Log message:
Use a more compact way to compose the initial pf ruleset.

Diff from Klemens Nanni
OK tb@ zhuk@



CVS: cvs.openbsd.org: src

2017-07-17 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/17 12:02:31

Modified files:
distrib/miniroot: install.sub 

Log message:
Fix IPv6 default router selection
- adjust to changed ping6 output
- tighten sed expression
- remove second sed, bsort() prints a unique list

reported by Paul de Weerd and others
prompted by a diff from Klemens Nanni
OK florian@



CVS: cvs.openbsd.org: src

2017-07-15 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/15 17:01:33

Modified files:
distrib/miniroot: install.sub 

Log message:
add comment



CVS: cvs.openbsd.org: src

2017-07-15 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/15 16:48:12

Modified files:
distrib/miniroot: install.sub 

Log message:
- remove superfluous blanks from v[46]_info() output
- tweak comments

Based on a diff from and discussions with Klemens Nanni.



CVS: cvs.openbsd.org: src

2017-07-15 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/15 16:35:56

Modified files:
distrib/miniroot: install.sub 

Log message:
Rework vlan configuration in the installer, triggered by the vlan
releated changes in ifconfig. Put the vlan configuration into its
own function vlan_config() which is called from configure_ifs().

NOTE: Depending on how you use autoinstall(8) related to vlans
(espcially if you rely on the default answers) you should check
that everything still works.

Prompted by and OK dlg@
'looks good' benno@
positive feedback tb@ deraadt@



CVS: cvs.openbsd.org: src

2017-07-04 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/04 13:02:11

Modified files:
etc: rc 

Log message:
Switch reorder_kernel() from sending emails to logging via syslog
and to write the logfile inside the kernel compile dir.

- turn the whole reorder_kernel function into a subshell {} -> ()
- create kernel compile dir early on
- redirect all stdout/stderr to a logfile inside this dir
- setup ERR trap handler that
- disables the EXIT trap handler
- syslogs the error and hints to the logfile
- additionally sends this message to the console
- setup EXIT trap handler that syslogs success
- wipe only the content instead of the whole kernel compile dir
- reestablish stdout redirection to the log after the wipe
- remove -q option of sha256 to log check result
- run reorder_kernel() in the background

OK deraadt@ tb@



CVS: cvs.openbsd.org: src

2017-07-02 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/02 06:45:43

Modified files:
distrib/miniroot: install.sub 

Log message:
Shorter version of the same.

based on a mail from Klemens Nanni on tech@



CVS: cvs.openbsd.org: src

2017-07-02 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/02 05:53:35

Modified files:
distrib/miniroot: install.sub 

Log message:
Tweak comment



CVS: cvs.openbsd.org: src

2017-07-02 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/07/02 05:52:44

Modified files:
distrib/miniroot: install.sub 

Log message:
NIFS is checked inside start_cgiinfo() already.
No need to do this check twice.

from Klemens Nanni



CVS: cvs.openbsd.org: src

2017-06-30 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/06/30 11:06:03

Modified files:
etc: rc 

Log message:
Improve reorder_kernel()

- check for and exit if /usr/share is on a nfs mounted filesystem
- add trap handlers that mail the logfile to the admin user
- use $_compile instead of $_compile_dir like in the installer
- use $_compile/$_kernel instead of $_kernel_dir
- remove the now redundant sha256 -h ... after make newinstall
- write stdout/stderr of the background subshell to a logfile

OK tb@ deraadt@



CVS: cvs.openbsd.org: src

2017-06-30 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/06/30 10:46:02

Modified files:
distrib/miniroot: install.sub 

Log message:
Create a unique kernel to boot from during install and upgrade.

- update the linkkit directory
- chroot and relink/install new kernel using the linkkit Makefile

Idea from and OK deraadt@
OK tb@



CVS: cvs.openbsd.org: src

2017-06-26 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/06/26 12:31:57

Modified files:
distrib/sgi/ramdisk: install.md 

Log message:
Add a MDKERNEL variable that contains the name of the boot kernel.
This will be used by the installer in an upcoming change.

OK deraadt@



CVS: cvs.openbsd.org: src

2017-06-14 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/06/14 15:39:53

Modified files:
etc: rc 

Log message:
Add a new function reorder_kernel() that relinks and installs the
new kernel in the background on system startup. It stores the hash
of the new kernel and sends a notification email to the admin or
root user. If it finds /usr/share/compile.tgz, it removes the
existing compile dir and replaces it with the content of (new)
archive. If the hash of /bsd does not match the stored one, no
relinking happens.

Idea from, joint work with and OK deraadt@
OK tb@ halex@
unnoticed by many



CVS: cvs.openbsd.org: src

2017-05-28 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/05/28 03:24:56

Modified files:
distrib/miniroot: install.sub 

Log message:
Remove _mode variable and use AI_MODE directly instead. Use the
exit code of ftp consistently to determine success of fetching the
response file.

discussed with and OK tb@



CVS: cvs.openbsd.org: src

2017-05-25 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/05/25 06:10:04

Modified files:
distrib/miniroot: install.sub 

Log message:
Move the code that runs the installer script in non-interactive
mode into a dedicated do_autoinstall() function.

OK halex@, krw@



CVS: cvs.openbsd.org: src

2017-05-25 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/05/25 02:25:00

Modified files:
distrib/miniroot: install.sub 

Log message:
Replace various echo "..."; exit 1 with a new err_exit() function.

diskussed with tb@ and halex@
OK krw@ on a similar diff



  1   2   3   4   5   6   >