Module Name: src
Committed By: ahoka
Date: Wed Sep 30 00:32:08 UTC 2009
Modified Files:
src/distrib/i386/cdroms: Makefile.cdrom
src/distrib/i386/ramdisks/common: dot.profile
Log Message:
Give a chance for dhcpcd to work by mounting a memory backed /var/db and
/var/run. Also create an empty lease file in /tmp/dhcpcd-lease.
XXX is this needed on other platforms too?
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/distrib/i386/cdroms/Makefile.cdrom
cvs rdiff -u -r1.3 -r1.4 src/distrib/i386/ramdisks/common/dot.profile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/i386/cdroms/Makefile.cdrom
diff -u src/distrib/i386/cdroms/Makefile.cdrom:1.13 src/distrib/i386/cdroms/Makefile.cdrom:1.14
--- src/distrib/i386/cdroms/Makefile.cdrom:1.13 Fri Sep 25 14:09:27 2009
+++ src/distrib/i386/cdroms/Makefile.cdrom Wed Sep 30 00:32:08 2009
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.cdrom,v 1.13 2009/09/25 14:09:27 christos Exp $
+# $NetBSD: Makefile.cdrom,v 1.14 2009/09/30 00:32:08 ahoka Exp $
.include <bsd.own.mk>
@@ -55,3 +55,4 @@
${CP} ${SYSINSTDIR}/sysinst cdrom
${CHMOD} ugo+rx cdrom/sysinst
${CP} ${SYSINSTDIR}/sysinstmsgs.?? cdrom
+ ${MKDIR} cdrom/var
Index: src/distrib/i386/ramdisks/common/dot.profile
diff -u src/distrib/i386/ramdisks/common/dot.profile:1.3 src/distrib/i386/ramdisks/common/dot.profile:1.4
--- src/distrib/i386/ramdisks/common/dot.profile:1.3 Tue Nov 25 14:25:59 2008
+++ src/distrib/i386/ramdisks/common/dot.profile Wed Sep 30 00:32:08 2009
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.3 2008/11/25 14:25:59 ad Exp $
+# $NetBSD: dot.profile,v 1.4 2009/09/30 00:32:08 ahoka Exp $
#
# Copyright (c) 1997 Perry E. Metzger
# Copyright (c) 1994 Christopher G. Demetriou
@@ -57,8 +57,12 @@
# set up some sane defaults
stty newcrt werase ^W intr ^C kill ^U erase ^H
mount -t tmpfs tmpfs /tmp
+ mount -t tmpfs tmpfs /var
mount -t tmpfs -o union tmpfs /etc
+ mkdir -p /var/run /var/db
+ echo > /tmp/dhcpcd-lease
+
grep() sed -n "/$1/p"
if [ -x /sysinst ]; then