Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/embedded Fix previous so that the new generate...



details:   https://anonhg.NetBSD.org/src/rev/323eddea2803
branches:  trunk
changeset: 335900:323eddea2803
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Jan 29 14:54:06 2015 +0000

description:
Fix previous so that the new generated rc.conf is picked up and that
any new new mount points (e.g. /proc and /kern) are generated.

While here increate the fs size so that postfix can actually build
/etc/mail/aliases.db

diffstat:

 distrib/utils/embedded/conf/evbarm.conf |  13 +++++++++++--
 distrib/utils/embedded/conf/x86.conf    |  13 +++++++++----
 distrib/utils/embedded/mkimage          |   4 ++--
 3 files changed, 22 insertions(+), 8 deletions(-)

diffs (101 lines):

diff -r bc204eda8ea8 -r 323eddea2803 distrib/utils/embedded/conf/evbarm.conf
--- a/distrib/utils/embedded/conf/evbarm.conf   Thu Jan 29 13:20:51 2015 +0000
+++ b/distrib/utils/embedded/conf/evbarm.conf   Thu Jan 29 14:54:06 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: evbarm.conf,v 1.19 2015/01/28 12:08:00 jmcneill Exp $
+# $NetBSD: evbarm.conf,v 1.20 2015/01/29 14:54:06 skrll Exp $
 # evbarm shared config
 #
 image=$HOME/${board}.img
@@ -6,7 +6,7 @@
 MACHINE=evbarm
 
 swap=256
-extra=8                # spare space
+extra=48               # spare space
 boot=112
 init=8
 ffsoffset=$(( (${init} + ${boot} + ${swap}) / 2 ))m
@@ -110,6 +110,12 @@
        fi
        echo "./etc/fstab type=file uname=root gname=wheel mode=0644" \
            >> "$tmp/selected_sets"
+
+       # Missing mount points from fstab
+       echo "./proc type=dir uname=root gname=wheel mode=0755" \
+           >> "$tmp/selected_sets"
+       echo "./kern type=dir uname=root gname=wheel mode=0755" \
+           >> "$tmp/selected_sets"
 }
 
 customize_evbarm() {
@@ -128,6 +134,9 @@
 ntpd=YES
 ntpd_flags="-g"
 EOF
+       echo "./etc/rc.conf type=file uname=root gname=wheel mode=0644" \
+           >> "$tmp/selected_sets"
+
        if [ ! -f ${release}/dev/MAKEDEV ]; then
                echo ${PROG}: Missing ${release}/dev/MAKEDEV 1>&2
                exit 1
diff -r bc204eda8ea8 -r 323eddea2803 distrib/utils/embedded/conf/x86.conf
--- a/distrib/utils/embedded/conf/x86.conf      Thu Jan 29 13:20:51 2015 +0000
+++ b/distrib/utils/embedded/conf/x86.conf      Thu Jan 29 14:54:06 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: x86.conf,v 1.6 2015/01/23 15:17:58 skrll Exp $
+# $NetBSD: x86.conf,v 1.7 2015/01/29 14:54:06 skrll Exp $
 # x86 shared config
 #
 
@@ -93,6 +93,11 @@
        fi
        echo "./etc/fstab type=file uname=root gname=wheel mode=0755" \
            >> "$tmp/selected_sets"
+
+       echo "./proc type=dir uname=root gname=wheel mode=0755" \
+           >> "$tmp/selected_sets"
+       echo "./kern type=dir uname=root gname=wheel mode=0755" \
+           >> "$tmp/selected_sets"
 }
 
 customize() {
@@ -111,6 +116,9 @@
 wscons=YES
 devpubd=YES
 EOF
+       echo "./etc/rc.conf type=file uname=root gname=wheel mode=0644" \
+           >> "$tmp/selected_sets"
+
        if [ ! -f ${release}/dev/MAKEDEV ]; then
                echo ${PROG}: Missing ${release}/dev/MAKEDEV 1>&2
                exit 1
@@ -118,9 +126,6 @@
        echo "${bar} running MAKEDEV ${bar}"
        ${HOST_SH} ${release}/dev/MAKEDEV -s all | sed -e 's:^\./:\./dev/:' \
            >> "$tmp/selected_sets"
-
-       echo "${bar} creating directories ${bar}"
-       mkdir ${mnt}/proc ${mnt}/kern
 }
 
 populate() {
diff -r bc204eda8ea8 -r 323eddea2803 distrib/utils/embedded/mkimage
--- a/distrib/utils/embedded/mkimage    Thu Jan 29 13:20:51 2015 +0000
+++ b/distrib/utils/embedded/mkimage    Thu Jan 29 14:54:06 2015 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: mkimage,v 1.51 2015/01/23 15:17:58 skrll Exp $
+# $NetBSD: mkimage,v 1.52 2015/01/29 14:54:06 skrll Exp $
 #
 # Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -176,7 +176,7 @@
 
 if [ -z "${bootonly}" ]; then
        echo ${bar} Populating ffs filesystem ${bar}
-       ${MAKEFS} -N ${release}/etc -t ffs -rx \
+       ${MAKEFS} -r -N ${release}/etc -t ffs -rx \
            -O ${ffsoffset} \
            -o d=4096 -b $((${extra}))m \
            -F "$tmp/selected_sets" ${image} "${release}" "${mnt}"



Home | Main Index | Thread Index | Old Index