* why rootfs directory in temp is empty
@ 2009-12-22 8:54 Guo Hongruan
2009-12-22 15:05 ` Mike Westerhof
0 siblings, 1 reply; 9+ messages in thread
From: Guo Hongruan @ 2009-12-22 8:54 UTC (permalink / raw)
To: openembeded-devel
Hi guys,
Today, I build an base-image using OE. And I want to check the content
of rootfs, but I found the directory rootfs in building directory is
empty. I remember there was the ontent of the target root filesystem. Why
have to remove them? Does it means the rootfs directory is unuseful?
Thanks a lot!
--
Guo Hongruan, Embedded Linux Consultant
Mobile: +86-0-13484056007
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: why rootfs directory in temp is empty
2009-12-22 8:54 why rootfs directory in temp is empty Guo Hongruan
@ 2009-12-22 15:05 ` Mike Westerhof
2009-12-22 19:51 ` Denys Dmytriyenko
0 siblings, 1 reply; 9+ messages in thread
From: Mike Westerhof @ 2009-12-22 15:05 UTC (permalink / raw)
To: openembedded-devel
Guo Hongruan wrote:
> Hi guys,
> Today, I build an base-image using OE. And I want to check the content
> of rootfs, but I found the directory rootfs in building directory is
> empty. I remember there was the ontent of the target root filesystem.
> Why have to remove them? Does it means the rootfs directory is unuseful?
>
> Thanks a lot!
>
Add IMAGE_KEEPROOTFS = "1" to your local.conf file.
I'm not sure why the change was made to clean it out every build, though.
-Mike (mwester)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: why rootfs directory in temp is empty
2009-12-22 15:05 ` Mike Westerhof
@ 2009-12-22 19:51 ` Denys Dmytriyenko
2009-12-22 22:25 ` Frans Meulenbroeks
0 siblings, 1 reply; 9+ messages in thread
From: Denys Dmytriyenko @ 2009-12-22 19:51 UTC (permalink / raw)
To: openembedded-devel
On Tue, Dec 22, 2009 at 09:05:31AM -0600, Mike Westerhof wrote:
> Guo Hongruan wrote:
> > Hi guys,
> > Today, I build an base-image using OE. And I want to check the content
> > of rootfs, but I found the directory rootfs in building directory is
> > empty. I remember there was the ontent of the target root filesystem.
> > Why have to remove them? Does it means the rootfs directory is unuseful?
> >
> > Thanks a lot!
> >
>
> Add IMAGE_KEEPROOTFS = "1" to your local.conf file.
> I'm not sure why the change was made to clean it out every build, though.
To prevent people from using it as an NFS share and having problems.
--
Denys
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: why rootfs directory in temp is empty
2009-12-22 19:51 ` Denys Dmytriyenko
@ 2009-12-22 22:25 ` Frans Meulenbroeks
2009-12-22 22:40 ` John Faith
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Frans Meulenbroeks @ 2009-12-22 22:25 UTC (permalink / raw)
To: openembedded-devel
2009/12/22 Denys Dmytriyenko <denis@denix.org>:
> On Tue, Dec 22, 2009 at 09:05:31AM -0600, Mike Westerhof wrote:
>> Guo Hongruan wrote:
>> > Hi guys,
>> > Today, I build an base-image using OE. And I want to check the content
>> > of rootfs, but I found the directory rootfs in building directory is
>> > empty. I remember there was the ontent of the target root filesystem.
>> > Why have to remove them? Does it means the rootfs directory is unuseful?
>> >
>> > Thanks a lot!
>> >
>>
>> Add IMAGE_KEEPROOTFS = "1" to your local.conf file.
>> I'm not sure why the change was made to clean it out every build, though.
>
> To prevent people from using it as an NFS share and having problems.
Ehm, can you please clarify why this would cause a problem?
(btw if I recall correctly the rootfs is still there in the work dir,
and anyway you can build a rootfs in a tar.gz file and untar that).
Frans
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: why rootfs directory in temp is empty
2009-12-22 22:25 ` Frans Meulenbroeks
@ 2009-12-22 22:40 ` John Faith
2009-12-22 22:46 ` Philip Balister
2009-12-23 8:57 ` Koen Kooi
2 siblings, 0 replies; 9+ messages in thread
From: John Faith @ 2009-12-22 22:40 UTC (permalink / raw)
To: openembedded-devel@lists.openembedded.org
Frans Meulenbroeks wrote:
> 2009/12/22 Denys Dmytriyenko <denis@denix.org>:
>
>> On Tue, Dec 22, 2009 at 09:05:31AM -0600, Mike Westerhof wrote:
>>
>>> Guo Hongruan wrote:
>>>
>>>> Hi guys,
>>>> Today, I build an base-image using OE. And I want to check the content
>>>> of rootfs, but I found the directory rootfs in building directory is
>>>> empty. I remember there was the ontent of the target root filesystem.
>>>> Why have to remove them? Does it means the rootfs directory is unuseful?
>>>>
>>>> Thanks a lot!
>>>>
>>>>
>>> Add IMAGE_KEEPROOTFS = "1" to your local.conf file.
>>> I'm not sure why the change was made to clean it out every build, though.
>>>
>> To prevent people from using it as an NFS share and having problems.
>>
>
> Ehm, can you please clarify why this would cause a problem?
> (btw if I recall correctly the rootfs is still there in the work dir,
> and anyway you can build a rootfs in a tar.gz file and untar that).
>
> Frans
>
The first time I tried to boot a system using files from the temp
rootfs, I quickly found that some parts were missing, like all the /dev
nodes, due to permissions when constructing the rootfs if I recall
correctly.
That was a while ago so maybe things are different now, but I'm glad
that the "wrong" files are removed now to reduce (my) confusion.
,
John
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: why rootfs directory in temp is empty
2009-12-22 22:25 ` Frans Meulenbroeks
2009-12-22 22:40 ` John Faith
@ 2009-12-22 22:46 ` Philip Balister
2009-12-23 1:07 ` Khem Raj
2009-12-23 8:57 ` Koen Kooi
2 siblings, 1 reply; 9+ messages in thread
From: Philip Balister @ 2009-12-22 22:46 UTC (permalink / raw)
To: openembedded-devel
On 12/22/2009 05:25 PM, Frans Meulenbroeks wrote:
> 2009/12/22 Denys Dmytriyenko<denis@denix.org>:
>> On Tue, Dec 22, 2009 at 09:05:31AM -0600, Mike Westerhof wrote:
>>> Guo Hongruan wrote:
>>>> Hi guys,
>>>> Today, I build an base-image using OE. And I want to check the content
>>>> of rootfs, but I found the directory rootfs in building directory is
>>>> empty. I remember there was the ontent of the target root filesystem.
>>>> Why have to remove them? Does it means the rootfs directory is unuseful?
>>>>
>>>> Thanks a lot!
>>>>
>>>
>>> Add IMAGE_KEEPROOTFS = "1" to your local.conf file.
>>> I'm not sure why the change was made to clean it out every build, though.
>>
>> To prevent people from using it as an NFS share and having problems.
>
> Ehm, can you please clarify why this would cause a problem?
> (btw if I recall correctly the rootfs is still there in the work dir,
> and anyway you can build a rootfs in a tar.gz file and untar that).
Someone correct me if I get this wrong ...
Since OE does not run as root, the file ownership are not suitable for
use as a true rootfs. During the assembly of the tarball, the file owner
information is "fixed" so that if you unpack the tarball as root, the
files have the proper owners.
So the temporary root file system will not do what people expect.
Philip
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: why rootfs directory in temp is empty
2009-12-22 22:46 ` Philip Balister
@ 2009-12-23 1:07 ` Khem Raj
2009-12-23 1:16 ` Guo Hongruan
0 siblings, 1 reply; 9+ messages in thread
From: Khem Raj @ 2009-12-23 1:07 UTC (permalink / raw)
To: openembedded-devel
On Tue, Dec 22, 2009 at 2:46 PM, Philip Balister <philip@balister.org> wrote:
> On 12/22/2009 05:25 PM, Frans Meulenbroeks wrote:
>>
>> 2009/12/22 Denys Dmytriyenko<denis@denix.org>:
>>>
>>> On Tue, Dec 22, 2009 at 09:05:31AM -0600, Mike Westerhof wrote:
>>>>
>>>> Guo Hongruan wrote:
>>>>>
>>>>> Hi guys,
>>>>> Today, I build an base-image using OE. And I want to check the
>>>>> content
>>>>> of rootfs, but I found the directory rootfs in building directory is
>>>>> empty. I remember there was the ontent of the target root filesystem.
>>>>> Why have to remove them? Does it means the rootfs directory is
>>>>> unuseful?
>>>>>
>>>>> Thanks a lot!
>>>>>
>>>>
>>>> Add IMAGE_KEEPROOTFS = "1" to your local.conf file.
>>>> I'm not sure why the change was made to clean it out every build,
>>>> though.
>>>
>>> To prevent people from using it as an NFS share and having problems.
>>
>> Ehm, can you please clarify why this would cause a problem?
>> (btw if I recall correctly the rootfs is still there in the work dir,
>> and anyway you can build a rootfs in a tar.gz file and untar that).
>
> Someone correct me if I get this wrong ...
>
> Since OE does not run as root, the file ownership are not suitable for use
> as a true rootfs. During the assembly of the tarball, the file owner
> information is "fixed" so that if you unpack the tarball as root, the files
> have the proper owners.
>
> So the temporary root file system will not do what people expect.
This is the real cause. Always use the tar file to populate the
root file system even if it is to be nfs mounted
-Khem
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: why rootfs directory in temp is empty
2009-12-23 1:07 ` Khem Raj
@ 2009-12-23 1:16 ` Guo Hongruan
0 siblings, 0 replies; 9+ messages in thread
From: Guo Hongruan @ 2009-12-23 1:16 UTC (permalink / raw)
To: openembedded-devel
Yea, I understand. Thanks a lot.
I used to check the rootfs directory quickly, to verify whether or not
some packages have been installed correctly and to check the rootfs size.
So when I can not find it as usual, I am amazing.
Thank all of you.
在 Wed, 23 Dec 2009 09:07:42 +0800,Khem Raj <raj.khem@gmail.com> 写道:
> On Tue, Dec 22, 2009 at 2:46 PM, Philip Balister <philip@balister.org>
> wrote:
>> On 12/22/2009 05:25 PM, Frans Meulenbroeks wrote:
>>>
>>> 2009/12/22 Denys Dmytriyenko<denis@denix.org>:
>>>>
>>>> On Tue, Dec 22, 2009 at 09:05:31AM -0600, Mike Westerhof wrote:
>>>>>
>>>>> Guo Hongruan wrote:
>>>>>>
>>>>>> Hi guys,
>>>>>> Today, I build an base-image using OE. And I want to check the
>>>>>> content
>>>>>> of rootfs, but I found the directory rootfs in building directory is
>>>>>> empty. I remember there was the ontent of the target root
>>>>>> filesystem.
>>>>>> Why have to remove them? Does it means the rootfs directory is
>>>>>> unuseful?
>>>>>>
>>>>>> Thanks a lot!
>>>>>>
>>>>>
>>>>> Add IMAGE_KEEPROOTFS = "1" to your local.conf file.
>>>>> I'm not sure why the change was made to clean it out every build,
>>>>> though.
>>>>
>>>> To prevent people from using it as an NFS share and having problems.
>>>
>>> Ehm, can you please clarify why this would cause a problem?
>>> (btw if I recall correctly the rootfs is still there in the work dir,
>>> and anyway you can build a rootfs in a tar.gz file and untar that).
>>
>> Someone correct me if I get this wrong ...
>>
>> Since OE does not run as root, the file ownership are not suitable for
>> use
>> as a true rootfs. During the assembly of the tarball, the file owner
>> information is "fixed" so that if you unpack the tarball as root, the
>> files
>> have the proper owners.
>>
>> So the temporary root file system will not do what people expect.
>
> This is the real cause. Always use the tar file to populate the
> root file system even if it is to be nfs mounted
>
> -Khem
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
--
Guo Hongruan, Embedded Linux Consultant
Mobile: +86-0-13484056007
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: why rootfs directory in temp is empty
2009-12-22 22:25 ` Frans Meulenbroeks
2009-12-22 22:40 ` John Faith
2009-12-22 22:46 ` Philip Balister
@ 2009-12-23 8:57 ` Koen Kooi
2 siblings, 0 replies; 9+ messages in thread
From: Koen Kooi @ 2009-12-23 8:57 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 22-12-09 23:25, Frans Meulenbroeks wrote:
> 2009/12/22 Denys Dmytriyenko <denis@denix.org>:
>> On Tue, Dec 22, 2009 at 09:05:31AM -0600, Mike Westerhof wrote:
>>> Guo Hongruan wrote:
>>>> Hi guys,
>>>> Today, I build an base-image using OE. And I want to check the content
>>>> of rootfs, but I found the directory rootfs in building directory is
>>>> empty. I remember there was the ontent of the target root filesystem.
>>>> Why have to remove them? Does it means the rootfs directory is unuseful?
>>>>
>>>> Thanks a lot!
>>>>
>>>
>>> Add IMAGE_KEEPROOTFS = "1" to your local.conf file.
>>> I'm not sure why the change was made to clean it out every build, though.
>>
>> To prevent people from using it as an NFS share and having problems.
>
> Ehm, can you please clarify why this would cause a problem?
The nfs server doesn't run inside the do_rootfs fakeroot sessions and
hence all the permission will be screwed up. If you can teach OE to
respawn the nfs server inside the fakeroot session, you might get away
with it :)
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFLMdt+MkyGM64RGpERAjY1AJwPkbebEMCnt2oSjDTXxJLDMJibgQCeKiIR
y343rN9hGQCkMzn8Kx6csBQ=
=zSNI
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-12-23 8:59 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-22 8:54 why rootfs directory in temp is empty Guo Hongruan
2009-12-22 15:05 ` Mike Westerhof
2009-12-22 19:51 ` Denys Dmytriyenko
2009-12-22 22:25 ` Frans Meulenbroeks
2009-12-22 22:40 ` John Faith
2009-12-22 22:46 ` Philip Balister
2009-12-23 1:07 ` Khem Raj
2009-12-23 1:16 ` Guo Hongruan
2009-12-23 8:57 ` Koen Kooi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.