From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: ChenQi <Qi.Chen@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: Problems with INC_RPM_IMAGE_GEN
Date: Mon, 16 Dec 2013 10:36:35 +0000 [thread overview]
Message-ID: <60315409.4GC3QP4sfd@helios> (raw)
In-Reply-To: <52AE819A.8020203@windriver.com>
Hi Qi,
On Monday 16 December 2013 12:29:14 ChenQi wrote:
> Recently I've enabled INC_RPM_IMAGE_GEN on my old and slow build
> machine. Here are two problems I can see with this feature.
>
> 1. INC_RPM_IMAGE_GEN and 'rm_work'
> If we enable INC_RPM_IMAGE_GEN and 'rm_work' at the same time, we would
> get build failures.
> This is because the original rootfs has been removed because of rm_work.
We could perhaps now auto-set RM_WORK_EXCLUDE for images where
INC_RPM_IMAGE_GEN is set, would that fix this?
> 2. INC_RPM_IMAGE_GEN and XXX_POSTPROCESS_COMMAND
> Let's first look at a case.
> 1. build core-image-minimal with 'extrausers' inherited and root
> password set in local.conf
> 2. build core-image-minimal without 'extrausers' inherited
> The image generated in the second step still has the root password set.
> This is not what we want.
>
> The problem in incremental rpm image generation is that it chooses the
> final image as a starting point.
> However, the final image has been tweaked by all those
> XXX_POSTPROCESS_COMMAND.
> For example, the 'debug-tweaks' IMAGE_FEATURE will lead to several
> additonal ROOTFS_POSTPROCESS_COMMAND.
> meta/classes/image.bbclass:# Allow dropbear/openssh to accept logins
> from accounts with an empty password string if debug-tweaks is enabled
> meta/classes/image.bbclass:ROOTFS_POSTPROCESS_COMMAND +=
> '${@base_contains("IMAGE_FEATURES", "debug-tweaks",
> "ssh_allow_empty_password; ", "",d)}'
> meta/classes/image.bbclass:# Enable postinst logging if debug-tweaks is
> enabled
> meta/classes/image.bbclass:ROOTFS_POSTPROCESS_COMMAND +=
> '${@base_contains("IMAGE_FEATURES", "debug-tweaks",
> "postinst_enable_logging; ", "",d)}'
>
> IMHO, the rootfs after all packages installed and before all postprocess
> commands running should serve as the reference rootfs for the
> incremental rpm image generation.
> But I cannot figure out a reasonable solution which doesn't have much
> performance impact.
>
> Any idea or suggestion?
Probably we would have to take a copy of the rootfs at some point before this.
To be honest though this incremental functionality has always seemed a bit
fragile to me - what if a postinstall for a package makes changes to files in
the rootfs installed by another package, and the second time around the
package is removed but the package's postrm doesn't undo those changes (do we
even run postrms during incremental rootfs generation)?
Cheers,
Paul
prev parent reply other threads:[~2013-12-16 10:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-16 4:29 Problems with INC_RPM_IMAGE_GEN ChenQi
2013-12-16 10:36 ` Paul Eggleton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=60315409.4GC3QP4sfd@helios \
--to=paul.eggleton@linux.intel.com \
--cc=Qi.Chen@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox