From owner-freebsd-questions@FreeBSD.ORG Tue Dec 11 19:02:05 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 86B6EF92 for ; Tue, 11 Dec 2012 19:02:05 +0000 (UTC) (envelope-from vrwmiller@gmail.com) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id F34988FC17 for ; Tue, 11 Dec 2012 19:02:04 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id j13so4085493lah.13 for ; Tue, 11 Dec 2012 11:02:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=XZZFvFSbbnBZ1OIsDt4mXh/8L7Aq19UsT2+WiF7P2j0=; b=EF+pxgCb3PzA9EAV8TdlUDFBoqnKPNpZreqouKtAiakJUUqJQY+sByCti70zZmLCvU exfeHdEEBJjD3c57CQZzo0oydX5njHjd2k3VrRAg6I/3pbigqIohzuisWFIBtfNGaTVO n5ZcU3unk7uKTYe9cXicdZdEelKVrYOlXEhK99jIjYd8fNh93vGTIwYBoaYv91zfoVhO 7YpyO5IM0QwEWkkEP/yqHpCj4xbUw0zF0d9PMvEjwHZ48eGhhW9VvnV2qzoQYaBFQfZ0 jzb3Gx2M6HM6AZjwgmw6yL8KLGALpZ8xagUmUIwinkFhJ+tuPioX1GWlGbBe787QxDms i4fg== MIME-Version: 1.0 Received: by 10.152.162.1 with SMTP id xw1mr18454768lab.3.1355252523599; Tue, 11 Dec 2012 11:02:03 -0800 (PST) Sender: vrwmiller@gmail.com Received: by 10.112.3.68 with HTTP; Tue, 11 Dec 2012 11:02:03 -0800 (PST) Date: Tue, 11 Dec 2012 14:02:03 -0500 X-Google-Sender-Auth: M9wKH2kJwobaflx14t6anlDdqDM Message-ID: Subject: make release and mfsroot From: Rick Miller To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Dec 2012 19:02:05 -0000 Hi All, I generate a bootonly ISO and want to add files to the mfsroot.gz created by the release.8 target. I want sysinstall to load an install.cfg which makes a call to doconfig.sh. The target destination for the files is stand/. My question is will the below patch accomplish this for me provided install.cfg and doconfig.sh exist in /usr/src/release? # diff -u Makefile.orig Makefile --- Makefile.orig 2012-12-11 18:15:29.000000000 +0000 +++ Makefile 2012-12-11 19:01:46.000000000 +0000 @@ -509,6 +509,7 @@ rm foo; \ fi -test -f install.cfg && cp install.cfg ${CHROOTDIR}/usr/src/release + -test -f doconfig.sh && cp doconfig.sh ${CHROOTDIR}/usr/src/release echo "#!/bin/sh" > ${_MK} echo "set -ex" >> ${_MK} echo "trap 'umount /dev || true' 0" >> ${_MK} @@ -823,7 +824,9 @@ done .endif -test -f ${.CURDIR}/install.cfg \ - && cp ${.CURDIR}/install.cfg ${RD}/mfsfd + && cp ${.CURDIR}/install.cfg ${RD}/mfsfd/stand + -test -f ${.CURDIR}/doconfig.sh \ + && cp ${.CURDIR}/doconfig.sh ${RD}/mfsfd/stand @mkdir -p ${RD}/mfsfd/boot .if ${TARGET_ARCH} != "ia64" && ${TARGET_ARCH} != "powerpc" @cp ${RD}/trees/base/boot/boot* ${RD}/mfsfd/boot -- Take care Rick Miller