Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/i386 Give a chance for dhcpcd to work by mounting a ...



details:   https://anonhg.NetBSD.org/src/rev/435033b9b12b
branches:  trunk
changeset: 747732:435033b9b12b
user:      ahoka <ahoka%NetBSD.org@localhost>
date:      Wed Sep 30 00:32:08 2009 +0000

description:
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?

diffstat:

 distrib/i386/cdroms/Makefile.cdrom       |  3 ++-
 distrib/i386/ramdisks/common/dot.profile |  6 +++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 20ab5518ff1c -r 435033b9b12b distrib/i386/cdroms/Makefile.cdrom
--- a/distrib/i386/cdroms/Makefile.cdrom        Tue Sep 29 23:56:26 2009 +0000
+++ b/distrib/i386/cdroms/Makefile.cdrom        Wed Sep 30 00:32:08 2009 +0000
@@ -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
diff -r 20ab5518ff1c -r 435033b9b12b distrib/i386/ramdisks/common/dot.profile
--- a/distrib/i386/ramdisks/common/dot.profile  Tue Sep 29 23:56:26 2009 +0000
+++ b/distrib/i386/ramdisks/common/dot.profile  Wed Sep 30 00:32:08 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index