All of lore.kernel.org
 help / color / mirror / Atom feed
* do_rootfs file or not to file....
@ 2008-05-09 15:02 Patrick Fischer
  2008-05-09 15:09 ` Koen Kooi
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Fischer @ 2008-05-09 15:02 UTC (permalink / raw)
  To: openembedded-devel

Hello oe

maybe i have a email problem. so sorry if you receive this email double.

We have a strange do_rootfs problem.
After update to Ubuntu 8.04 and debian testing we can't run do_rootfs anymore.

Sometimes it is a file which is no file or a dir which is not a dir:

In this case a dir was created with mkdir and the next ls -l line shows that 
it is a file:

######
+ rm -rf /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
+ mkdir -p /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
+ ls -l /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
-rwxr-xr-x 2 root root 4096 May  8 
14:03 /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
+ 
cp -r /usr/src/trunk/projects/base/build/tmp/rootfs/usr/local/ /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
cp: target `/usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/' is not 
a directory
######

Also it could be inverted. A file copied by cp is a dir.

######
mkfs.jffs2 -x 
lzo --root=/usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/ --faketime --output=/usr/src/trunk/projects/base/build/tmp/deploy/images/rootfs.jffs2 --little-endian -e 
128 --pad=27131904 
mkfs.jffs2: opening 
directory /usr/src/trunk/projects/base/build/tmp/rootfs_2/lib/libblaconfig.so.0: 
Not a directory 
######

The really strange thing is that if I run 
the /usr/src/trunk/projects/base/build/tmp/work/boxr5-1.0-r0/temp/run.do_rootfs.12648 
by hand, it works fine. The Problem is not always at the same line!!

I read something about "switch from RiserFS to ext3" but I have ext3.
/bin/sh is bash

I'm not sure but the scripts are called from within python??
The workstation which failed are using Python 2.5.2.
Python 2.4.4 -> works
Python 2.5.2 -> fails 

I'm not allown, in this Forum some people have the same problem: 
http://www.dream-multimedia-tv.de/board/thread.php?postid=17280#post17280

Maybe somebody knows a fix.

Best Regards
Patrick Fischer

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: do_rootfs file or not to file....
  2008-05-09 15:02 do_rootfs file or not to file Patrick Fischer
@ 2008-05-09 15:09 ` Koen Kooi
  2008-05-13 10:14   ` Patrick Fischer
  0 siblings, 1 reply; 3+ messages in thread
From: Koen Kooi @ 2008-05-09 15:09 UTC (permalink / raw)
  To: openembedded-devel

Patrick Fischer wrote:
> Hello oe
>
> maybe i have a email problem. so sorry if you receive this email double.
>
> We have a strange do_rootfs problem.
> After update to Ubuntu 8.04 and debian testing we can't run do_rootfs anymore.
>
> Sometimes it is a file which is no file or a dir which is not a dir:

Sound like fakeroot issues, you have 2 options to 'fix' it:

* cat /dev/urandom > /dev/zero while doing do_rootfs
* upgrade the fakeroot-native recipe

regards,

Koen


>
> In this case a dir was created with mkdir and the next ls -l line shows that
> it is a file:
>
> ######
> + rm -rf /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
> + mkdir -p /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
> + ls -l /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
> -rwxr-xr-x 2 root root 4096 May  8
> 14:03 /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
> +
> cp -r /usr/src/trunk/projects/base/build/tmp/rootfs/usr/local/ /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
> cp: target `/usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/' is not
> a directory
> ######
>
> Also it could be inverted. A file copied by cp is a dir.
>
> ######
> mkfs.jffs2 -x
> lzo --root=/usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/ --faketime --output=/usr/src/trunk/projects/base/build/tmp/deploy/images/rootfs.jffs2 --little-endian -e
> 128 --pad=27131904
> mkfs.jffs2: opening
> directory /usr/src/trunk/projects/base/build/tmp/rootfs_2/lib/libblaconfig.so.0:
> Not a directory
> ######
>
> The really strange thing is that if I run
> the /usr/src/trunk/projects/base/build/tmp/work/boxr5-1.0-r0/temp/run.do_rootfs.12648
> by hand, it works fine. The Problem is not always at the same line!!
>
> I read something about "switch from RiserFS to ext3" but I have ext3.
> /bin/sh is bash
>
> I'm not sure but the scripts are called from within python??
> The workstation which failed are using Python 2.5.2.
> Python 2.4.4 ->  works
> Python 2.5.2 ->  fails
>
> I'm not allown, in this Forum some people have the same problem:
> http://www.dream-multimedia-tv.de/board/thread.php?postid=17280#post17280
>
> Maybe somebody knows a fix.
>
> Best Regards
> Patrick Fischer
>





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: do_rootfs file or not to file....
  2008-05-09 15:09 ` Koen Kooi
@ 2008-05-13 10:14   ` Patrick Fischer
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick Fischer @ 2008-05-13 10:14 UTC (permalink / raw)
  To: openembedded-devel

> > We have a strange do_rootfs problem.
> > After update to Ubuntu 8.04 and debian testing we can't run do_rootfs
> anymore.
> >
> > Sometimes it is a file which is no file or a dir which is not a dir:
> 
> Sound like fakeroot issues, you have 2 options to 'fix' it:
> 
> * cat /dev/urandom > /dev/zero while doing do_rootfs
> * upgrade the fakeroot-native recipe

fakeroot 1.7.1 seems to work fine.

Thanks
Patrick





> 
> regards,
> 
> Koen
> 
> 
> >
> > In this case a dir was created with mkdir and the next ls -l line shows
> that
> > it is a file:
> >
> > ######
> > + rm -rf /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
> > + mkdir -p /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
> > + ls -l /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
> > -rwxr-xr-x 2 root root 4096 May  8
> > 14:03 /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
> > +
> > cp -r /usr/src/trunk/projects/base/build/tmp/rootfs/usr/local/
> /usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
> > cp: target `/usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/'
> is not
> > a directory
> > ######
> >
> > Also it could be inverted. A file copied by cp is a dir.
> >
> > ######
> > mkfs.jffs2 -x
> > lzo --root=/usr/src/trunk/projects/base/build/tmp/rootfs/../rootfs_2/
> --faketime
> --output=/usr/src/trunk/projects/base/build/tmp/deploy/images/rootfs.jffs2 --little-endian -e
> > 128 --pad=27131904
> > mkfs.jffs2: opening
> > directory
> /usr/src/trunk/projects/base/build/tmp/rootfs_2/lib/libblaconfig.so.0:
> > Not a directory
> > ######
> >
> > The really strange thing is that if I run
> > the
> /usr/src/trunk/projects/base/build/tmp/work/boxr5-1.0-r0/temp/run.do_rootfs.12648
> > by hand, it works fine. The Problem is not always at the same line!!
> >
> > I read something about "switch from RiserFS to ext3" but I have ext3.
> > /bin/sh is bash
> >
> > I'm not sure but the scripts are called from within python??
> > The workstation which failed are using Python 2.5.2.
> > Python 2.4.4 ->  works
> > Python 2.5.2 ->  fails
> >
> > I'm not allown, in this Forum some people have the same problem:
> >
> http://www.dream-multimedia-tv.de/board/thread.php?postid=17280#post17280
> >
> > Maybe somebody knows a fix.
> >
> > Best Regards
> > Patrick Fischer
> >
> 
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-13 10:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-09 15:02 do_rootfs file or not to file Patrick Fischer
2008-05-09 15:09 ` Koen Kooi
2008-05-13 10:14   ` Patrick Fischer

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.