How can I add new binaries to the mfsroot image?
psteele at maxiscale.com
Sun Nov 16 19:17:42 PST 2008
> 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.'
>Wild guess: the shared libraries are present somewhere else on the CD,
>which perhaps is either not mounted or not pointed to by
>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
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.
More information about the freebsd-hackers