From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 16 23:41:07 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB5311065675 for ; Sun, 16 Nov 2008 23:41:07 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id ADE868FC1A for ; Sun, 16 Nov 2008 23:41:07 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id mAGNf6601335; Sun, 16 Nov 2008 15:41:06 -0800 (PST) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id mAGNf6804553; Sun, 16 Nov 2008 15:41:06 -0800 (PST) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Sun, 16 Nov 2008 15:41:06 -0800 (PST) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Peter Steele In-Reply-To: <2ACA3DE8F9758A48B8BE2C7A847F91F23B502B@polaris.maxiscale.com> Message-ID: References: <2ACA3DE8F9758A48B8BE2C7A847F91F23B502B@polaris.maxiscale.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: How can I add new binaries to the mfsroot image? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2008 23:41:07 -0000 On Sun, 16 Nov 2008, Peter Steele wrote: > I want to make a custom FreeBSD install CD-ROM with additional commands > available in the mfsroot image. Adding the new commands to the image is > easy enough, and I've made an install.cfg file on the CD-ROM as well so > that when the CD runs the commands in install.cfg are automatically > executed. This all works, except none of the new binaries I add to the > mfsroot image run during the automated sysinstall session. If I > reference one of the default commands (the ones stored in /stand) they > run fine, but if I add a new FreeBSD binary to the /stand directory > (e.g. gmirror), the command fails. How does it fail? Is the binary you added statically linked? > What's weird is that I can open a fixit shell after the install.cfg > script fails and then run the same commands interactively and they work > fine. Why would work these commands work in an interactive fixit shell > but not during the automated sysinstall session? Wild guess: the shared libraries are present somewhere else on the CD, which perhaps is either not mounted or not pointed to by LD_LIBRARY_PATH or similar until the fixit shell is run. -- Nate Eldredge neldredge@math.ucsd.edu