[yocto] How to build yocto as a root user?

Jan Lindåker jan.lindaker at axis.com
Tue Aug 9 07:27:15 PDT 2016


________________________________________
From: yocto-bounces at yoctoproject.org <yocto-bounces at yoctoproject.org> on behalf of Philip Balister <philip at balister.org>
Sent: Tuesday, August 9, 2016 15:39
To: jags gediya; yocto at yoctoproject.org; meta-freescale at yoctoproject.org
Subject: Re: [yocto] How to build yocto as a root user?

On 08/09/2016 09:32 AM, jags gediya wrote:
> > I am facing issues while build yocto as root user on ubuntu 14.04.
> > How can i build as a root user?
> 
> Do not do this, it is a terrible idea. Create a user account and build
> there.
> 
> Philip

You are right Philip, for building with yocto/bitbake it is a bad idea. I only read the part with becoming root, and forgot that I do not build as root.

However,  to be able to build a usable file system that installs on target I think installing fakeroot is necessary:
$ sudo apt-get install fakeroot 
$ man fakeroot

/BR Jan

>
>
>
--
_______________________________________________
yocto mailing list
yocto at yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list