[oe] [PATCH] openembedded bitbake conf: fix for file system image creation

Alexander Stohr Alexander.Stohr at gmx.de
Fri Jul 22 14:22:14 UTC 2011


i've come to the insight that the tool "genext2fs"
does a very limited job in respect to what i would
consider current file system standards.

it does what its name says: generating an ext2 file system.
it does _not_:
- generate an UUID
- set the revision level to >0 (that might indicate an ext3 file system)
- set the members that come with a revision >0

if later on a "tune2fs -j" is applied to such an ext2 file system (as specified by OE bitbake.conf)
then a journal is created making it effectively an ext3 file system.
this step does _not_:
- generate an UUID
- set the revision level to >0 (that might indicate an ext3 file system)
- set the members that come with a revision >0
this might or might not be correct in terms of the tool.
with my limited knowledge level=0 might not be allowed to receive a journal - or alternatively when the journal is added the level value and members should see an update.

my short term choice was the addition of "e2fschk -y <image>" to my local version of the OE bitbake.conf file. (see patch below. Note: that my local file is not a current version, ext4 and misc packer formats are missing but you should be able to get the clue on the subject.)
this step _does_:
- generate an UUID
- set the revision level to >0 (that might indicate an ext3 file system)
- set the members that come with a revision >0

as a result i get sane, checked and thus most probably working file system image. any later fs check on the image will either succeed or fail depending on what changes the file system has seen since its creation.
if that step is not applied i would never be able to automatically verify the file system since it had errors inside at already its release time.

regards, Alex.
-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!		
Jetzt informieren: http://www.gmx.net/de/go/freephone
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitbake.conf.diff
Type: text/x-patch
Size: 2652 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20110722/dbf580e8/attachment-0002.bin>


More information about the Openembedded-devel mailing list