From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 17 03:17:42 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 17637106564A for ; Mon, 17 Nov 2008 03:17:42 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from arcturus.maxiscale.com (arcturus.maxiscale.com [76.231.178.136]) by mx1.freebsd.org (Postfix) with ESMTP id E97EB8FC0C for ; Mon, 17 Nov 2008 03:17:41 +0000 (UTC) (envelope-from psteele@maxiscale.com) X-ASG-Debug-ID: 1226891720-22b200000000-P5m3U7 X-Barracuda-URL: http://10.100.1.25:8000/cgi-bin/mark.cgi Received: from polaris.maxiscale.com (localhost [127.0.0.1]) by arcturus.maxiscale.com (Spam Firewall) with ESMTP id A165E2F752 for ; Sun, 16 Nov 2008 19:15:20 -0800 (PST) Received: from polaris.maxiscale.com (polaris.maxiscale.com [10.100.1.24]) by arcturus.maxiscale.com with ESMTP id aFmr2SQJ3QosfdhP for ; Sun, 16 Nov 2008 19:15:20 -0800 (PST) X-ASG-Whitelist: Client X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-ASG-Orig-Subj: RE: How can I add new binaries to the mfsroot image? Date: Sun, 16 Nov 2008 19:15:12 -0800 Message-ID: <2ACA3DE8F9758A48B8BE2C7A847F91F23B5040@polaris.maxiscale.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How can I add new binaries to the mfsroot image? Thread-Index: AclIROOVma+4yZpNQ/+kTxmAijzKmAAAKl5A References: <2ACA3DE8F9758A48B8BE2C7A847F91F23B502B@polaris.maxiscale.com> From: "Peter Steele" To: X-Barracuda-Connect: polaris.maxiscale.com[10.100.1.24] X-Barracuda-Start-Time: 1226891782 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at maxiscale.com 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: Mon, 17 Nov 2008 03:17:42 -0000 > How does it fail? There doesn't seem to be any error generated. Or at least I tried to capture stderr and got nothing. > Is the binary you added statically linked? The command I'm doing most of my testing with is gmirror. I pulled it from one of our operation FreeBSD boxes, and it appears to be referencing several shared libraries: # strings /stand/gmirror | grep '.so.' /libexec/ld-elf.so.1 libgeom.so.4 libsbuf.so.4 libbsdxml.so.3 libutil.so.7 libc.so.7 >Wild guess: the shared libraries are present somewhere else on the CD,=20 >which perhaps is either not mounted or not pointed to by LD_LIBRARY_PATH=20 >or similar until the fixit shell is run. All of these shared libraries exist under /dist, which is mounted as the FreeBSD CD. The first one is an absolute path that is in fact a symbolic link in the fixit shell that ends up pointing to a location under /dist. LD_LIBRARY_PATH is not set in the fixit shell, so I'm curious how these shared libraries are being located under /dist (the ones without the explicit path). I think you are right though, it might be related to the shared libraries. I'll try setting LD_LIBRARY_PATH explicitly to see if that solves the problem.