summaryrefslogtreecommitdiffstats
path: root/release/rc.local
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2014-09-13 20:09:02 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2014-09-13 20:09:02 +0000
commit999ff4f617863f69c4b4a373172bd2d118be8a49 (patch)
treef2f3b12f363115bb905f055cf59d49744fb6cf7b /release/rc.local
parent5f75e2409e764d364e8f9bda5f5ff7c6bd30358e (diff)
downloadFreeBSD-src-999ff4f617863f69c4b4a373172bd2d118be8a49.zip
FreeBSD-src-999ff4f617863f69c4b4a373172bd2d118be8a49.tar.gz
Create /tmp/bsdinstall_etc even if we aren't starting the installer so that
dhclient can write resolv.conf when used from the live environment. PR: 176078 MFC after: 3 days
Diffstat (limited to 'release/rc.local')
-rwxr-xr-xrelease/rc.local3
1 files changed, 3 insertions, 0 deletions
diff --git a/release/rc.local b/release/rc.local
index 2c846c4..cb44227 100755
--- a/release/rc.local
+++ b/release/rc.local
@@ -10,6 +10,9 @@
MACHINE=`uname -m`
+# resolv.conf from DHCP ends up in here, so make sure the directory exists
+mkdir /tmp/bsdinstall_etc
+
kbdcontrol -d >/dev/null 2>&1
if [ $? -eq 0 ]; then
# Syscons: use xterm, start interesting things on other VTYs
OpenPOWER on IntegriCloud