* Creating tailored image without standard rootfs files
@ 2013-03-21 15:09 Peter Bergin
2013-03-21 19:08 ` Anders Darander
2013-03-21 19:44 ` Tomas Frydrych
0 siblings, 2 replies; 3+ messages in thread
From: Peter Bergin @ 2013-03-21 15:09 UTC (permalink / raw)
To: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1000 bytes --]
Hi,
for my Yocto build I want to create two separate images as output because in my system I have two separate partitions. One partition containing the root file system and one partition containing configuration and application data. What I want is to create an image only containing data and applications from my recipes that I can apply to my data partition.
I have tried this approach:
my-data-image.bb
-------------------------------------------------------------------
IMAGE_INSTALL = "my-application1-data \
my-application2-data"
IMAGE_FEATURES = ""
IMAGE_LINGUAS = ""
IMAGE_TYPES = "tar.gz"
inherit image
------------------------------------------------------------------
When building this image the rootfs will contain /etc /dev /lib /var and init, directories that I do not want. I only want an output with my files from 'my-application1-data' and 'my-application2-data'. Can anyone suggest me the best way forward?
Thanks,
/Peter
[-- Attachment #2: Type: text/html, Size: 5307 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Creating tailored image without standard rootfs files
2013-03-21 15:09 Creating tailored image without standard rootfs files Peter Bergin
@ 2013-03-21 19:08 ` Anders Darander
2013-03-21 19:44 ` Tomas Frydrych
1 sibling, 0 replies; 3+ messages in thread
From: Anders Darander @ 2013-03-21 19:08 UTC (permalink / raw)
To: yocto
* Peter Bergin <Peter.Bergin@qmatic.com> [130321 16:10]:
> for my Yocto build I want to create two separate images as output because in my
> system I have two separate partitions. One partition containing the root file
> system and one partition containing configuration and application data. What I
> want is to create an image only containing data and applications from my
> recipes that I can apply to my data partition.
Intresting question. Maybe someone will have a simpler answer than me,
as I might have some uses for this also.
> I have tried this approach:
> my-data-image.bb
> -------------------------------------------------------------------
> IMAGE_INSTALL = "my-application1-data \
> my-application2-data"
> IMAGE_FEATURES = ""
> IMAGE_LINGUAS = ""
> IMAGE_TYPES = “tar.gz”
> inherit image
> ------------------------------------------------------------------
> When building this image the rootfs will contain /etc /dev /lib /var and init,
> directories that I do not want. I only want an output with my files from
> ‘my-application1-data’ and ‘my-application2-data’. Can anyone suggest me the
> best way forward?
I would probably approach this by creating a post-processing script,
that removes these automatically created directories. This is probably
the easiest and fastest way to fix this.
Another, slightly more interesting approach would be to patch up the
image creation, to allow for images like this by setting some extra flag
or EXTRA_IMAGE_FEATURE...
Cheers,
Anders
--
Anders Darander
ChargeStorm AB / eStorm AB
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Creating tailored image without standard rootfs files
2013-03-21 15:09 Creating tailored image without standard rootfs files Peter Bergin
2013-03-21 19:08 ` Anders Darander
@ 2013-03-21 19:44 ` Tomas Frydrych
1 sibling, 0 replies; 3+ messages in thread
From: Tomas Frydrych @ 2013-03-21 19:44 UTC (permalink / raw)
To: yocto
On 21/03/13 15:09, Peter Bergin wrote:
> for my Yocto build I want to create two separate images as output
> because in my system I have two separate partitions. One partition
> containing the root file system and one partition containing
> configuration and application data. What I want is to create an image
> only containing data and applications from my recipes that I can apply
> to my data partition.
You can post-process the rootfs before generating the image to rm the
dirs you do not want, by appending a suitable function to the
ROOTFS_POSTPROCESS_COMMAND variable.
Also, there are existing systems out here that need multiple partitions,
e.g., the SD image for RPi (see meta-raspberrypi) contains two separate
partitions, see the sdimage bbclass for what it does.
Tomas
--
http://sleepfive.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-21 19:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-21 15:09 Creating tailored image without standard rootfs files Peter Bergin
2013-03-21 19:08 ` Anders Darander
2013-03-21 19:44 ` Tomas Frydrych
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.