Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2017 16:53:46 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        "O. Hartmann" <ohartmann@walstatt.org>, freebsd-arm@FreeBSD.org
Subject:   Re: NanoBSD: Cuurent/NANO_ARCH=aarch64: chroot: : No such file or directory
Message-ID:  <1507762426.8386.24.camel@freebsd.org>
In-Reply-To: <20171011204722.3622d73c@thor.intern.walstatt.dynvpn.de>
References:  <bug-222924-7@https.bugs.freebsd.org/bugzilla/> <20171011204722.3622d73c@thor.intern.walstatt.dynvpn.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2017-10-11 at 20:47 +0200, O. Hartmann wrote:
> Trying to install a successfully cross compiled FreeBSD (TARGET=arm64) as NanoBSD.
> NanoBSD is configure using NANO_ARCH="aarch64".
> 
> Port emulators/qemu-user-static is installed and loaded:
> 
>  8    1 0xffffffff8243f000 1564     imgact_binmisc.ko
> 
> When installing NanoBSD's world and then running mtree, the nanobsd script runs into this
> error:
> 
> /pool/nanobsd/aarch64/NANO_aarch64/_.w/./boot/loader.conf.local
> 283 blocks
> + [ -n /home/user/Projects/router/nanobsd/mtree/Files.mtree -a \
> 			-f /home/user/Projects/router/nanobsd/mtree/Files.mtree ]
> + CR 'mtree -eiU -p /'
> + chroot /pool/nanobsd/aarch64/NANO_aarch64/_.w '' /bin/sh -exc 'mtree -eiU -p /'
> chroot: : No such file or directory
> 

I'm not sure how or why it's happening (I've never used nanobsd), but
the complaint is about those empty quotes ('') between the pathname and
the /bin/sh in the chroot command.  It's trying to run a program named
'' and chroot is complaining that it can't find anything named that.

-- Ian

> Is there anything I miss here with the QEMU emulator catching up?
> 
> Thanks in advance,
> 
> Oliver
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1507762426.8386.24.camel>