From 54b368c4e9f5d7310129b5079d26619a2b48b14c Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sun, 2 Mar 2008 21:18:59 +0000 Subject: Keep resolv.conf.shadow around when restarting an install. This means manually entered DNS server addresses are not lost when an install is restarted. Restores behaviour unintentionally lost with r1.127. ok deraadt@ --- distrib/miniroot/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index b0679df9ccd..4f30989d81a 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sh,v 1.155 2008/02/11 23:40:03 krw Exp $ +# $OpenBSD: install.sh,v 1.156 2008/03/02 21:18:58 krw Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1997-2004 Todd Miller, Theo de Raadt, Ken Westerback @@ -325,8 +325,8 @@ THESETS="$THESETS site$VERSION-$(hostname -s).tgz" # Remove existing network configuration files in /tmp to ensure they don't leak # onto the installed system in the case of a restarted install. Any information # contained within them should be accessible via ifconfig, hostname, route, -# etc. -( cd /tmp; rm -f host* my* resolv.* dhclient.* ) +# etc, or from resolv.conf.shadow. +( cd /tmp; rm -f host* my* resolv.conf resolv.conf.tail dhclient.* ) # Always create new hosts file. cat >/tmp/hosts <<__EOT -- cgit v1.2.3