diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-02-07 18:01:09 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-02-07 18:01:09 +0000 |
commit | c78aef209d86a683f4658d72b96dfa1fdd2b7d85 (patch) | |
tree | 7858d6714011890193cce128c552ed0922b96547 /distrib/miniroot/install.sh | |
parent | d7c867bd4d75bf9cec3418e23c12d4a2f5d79ced (diff) |
Use absolute path to the temporary hosts file; causes /etc/hosts to be correctly
populated upon installation again.
Diffstat (limited to 'distrib/miniroot/install.sh')
-rw-r--r-- | distrib/miniroot/install.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index fd9aa3265f8..d4e2e2ea8a4 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sh,v 1.216 2011/01/10 06:49:08 deraadt Exp $ +# $OpenBSD: install.sh,v 1.217 2011/02/07 18:01:08 miod Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback @@ -244,7 +244,7 @@ hostname >/tmp/myname # to '1.2.3.4 hostname.$FQDN hostname'. Leave untouched lines containing # domain information or aliases. These are lines the user added/changed # manually. Note we may have no hosts file if no interfaces were configured. -if [[ -f hosts ]]; then +if [[ -f /tmp/hosts ]]; then _dn=$(get_fqdn) while read _addr _hn _aliases; do if [[ -n $_aliases || $_hn != ${_hn%%.*} || -z $_dn ]]; then |