Re: tar not working in an i386 chroot (getvfsbyname)

From: David Naylor <naylor.b.david_at_gmail.com>
Date: Wed, 22 Aug 2012 21:54:46 +0200
On Wednesday, 22 August 2012 13:38:41 David Naylor wrote:
> I'm test it in ~8 hours and report back.
> 
> On Aug 22, 2012 1:34 PM, "Konstantin Belousov" <kostikbel_at_gmail.com> wrote:
> > On Wed, Aug 22, 2012 at 09:13:44AM +0200, David Naylor wrote:
> > > Hi,
> > > 
> > > While trying to compile FreeBSD 10 packages I encountered this error:
> > > # chroot /scratchpad/freebsd10_i386 tar -cf /dev/null root
> > > tar: getvfsbyname failed: No such file or directory
> > > tar: Error exit delayed from previous errors.
> > > 
> > > The kernel does have COMPAT_FREEBSD32 in it.  To reproduce this (on an
> > > FreeBSD10/amd64 machine) do:
> > > # cd /usr/src
> > > # make -sj16 buildworld installworld DESTDIR=/scratchpad/freebsd10_i386
> > > # chroot /scratchpad/freebsd10_i386 tar -cf /dev/null root
> > 
> > http://lists.freebsd.org/pipermail/freebsd-current/2012-August/035976.htm
> > l
> > 
> > I need somebody to test this before commit.

Applying this patch to 9-STABLE (with some fuzz) I get:
# chroot /scratchpad/freebsd10_i386/ tar -cvf /dev/null root
a root
a root/.k5login
a root/.profile
a root/.cshrc
a root/.login
a root/.history

The patch works for me.  Thanks

Received on Wed Aug 22 2012 - 17:54:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:29 UTC