From owner-cvs-all@FreeBSD.ORG Thu Sep 23 19:29:18 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B21B16A4CE; Thu, 23 Sep 2004 19:29:18 +0000 (GMT) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42F1043D1D; Thu, 23 Sep 2004 19:29:18 +0000 (GMT) (envelope-from des@des.no) Received: from dwp.des.no (37.80-203-228.nextgentel.com [80.203.228.37]) by mail.broadpark.no (Postfix) with ESMTP id 008891A87; Thu, 23 Sep 2004 21:29:59 +0200 (MEST) Received: by dwp.des.no (Postfix, from userid 2602) id 32265B873; Thu, 23 Sep 2004 21:29:17 +0200 (CEST) To: Brooks Davis References: <200409231552.i8NFqh1c042744@repoman.freebsd.org> <20040923120543.B72856@xorpc.icir.org> <20040923191538.GG25699@odin.ac.hmc.edu> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Thu, 23 Sep 2004 21:29:17 +0200 In-Reply-To: <20040923191538.GG25699@odin.ac.hmc.edu> (Brooks Davis's message of "Thu, 23 Sep 2004 12:15:38 -0700") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: Luigi Rizzo cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: cvs-src@FreeBSD.org Subject: Re: cvs commit: src/share/examples/diskless clone_root X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 19:29:18 -0000 Brooks Davis writes: > The problem is that currently there is no way to populate /var without a > minimum of mtree which lives in /usr. Since /var is supposed to exist > before we mount /usr there's a dependency problem. We should be able > to fix the mtree dependency now that bsdtar is available since we could > install a pax archive derived from the mtree file. ...or mtree could move to /sbin. > We also strongly > desire the creation of syslog files which currently requires newsyslog. You can easily implement 'newsyslog -CC' with sh, touch, chown and chmod: while read file arg1 arg2 rest ; do touch "${file}" case ${arg1} in *:*) chown "${arg1}" "${file}" arg1=3D"${arg2}" ;; esac case ${arg1} in [0-7][0-7][0-7]) chmod "0${arg1}" "${file}" ;; esac done The requirement for touch might be removable but I haven't really tried > since the others are more fundamental. You can easily implement 'touch' with sh and test: touch() { /bin/test -e "$1" || :>"$1" } DES --=20 Dag-Erling Sm=F8rgrav - des@des.no