[oe] Issues with the system startup when the IMAGE_TYPE is squashfs

Marcin Juszkiewicz openembedded at haerwu.biz
Mon Nov 17 16:31:24 UTC 2008


Thursday 13 of November 2008 12:19:28 Christian Pössinger napisał(a):
> I'm currently building a rootfs that will be stored in a squashfs
> container. The file is properly created by OpenEmbedded, but I
> noticed some issues:

> The second issue comes with the kernel modules. Again, the first
> system startup will create the modules.dep file inside the
> /lib/modules/$(uname -a) directory. But as stated before, this is not
> possible on a read-only filesystem.
>
> Is there any way within OpenEmbedded to create those files before the
> actual rootfs image is packed?

Each kernel module has postinstall script (added by kernel.bbclass) 
which calls 'depmod -a' and update-modules. Opkg intercepts depmod calls 
to make it just one call in 'opkg configure' during first boot. In 
effect your rootfs has all module dependencies generated on build time. 
You can probably remove second part of those postinstalls to not call 
them on device at all.

Regards, 
-- 
JID:      hrw at jabber.org
Website:  http://blog.haerwu.biz/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz






More information about the Openembedded-devel mailing list