summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_deb.bbclass
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-02-12 18:12:37 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-13 16:52:28 +0000
commit6cca7efa6f7b61523913eace3f44ca2235d4e9ac (patch)
treec92fabaac094678c998376529a251285585a3e88 /meta/classes/rootfs_deb.bbclass
parent7306dbea6d5ea95624f89bb247b742392be20046 (diff)
downloadpoky-6cca7efa6f7b61523913eace3f44ca2235d4e9ac.tar.gz
image.bbclass: add fall-back functionality when running intercepts
If an intercept script fails, it would be helpful to fall-back to running the postinstall on target's first boot. In order to achieve that, the postinstalls that install a host intercept hook will have to return 1, so that the postinstall is marked as unpacked only. If the intercept hook fails, then we're ok, the postinstalls will be run on target anyway. If it succeeds, then mark the packages as installed. This logic was chosen mainly because of rpm backend which saves the failed postinstalls in /etc/rpm-postinsts. Hence, in order to mark the packages as installed, all we have to do is delete the scriptlets from there. (From OE-Core rev: ed8ac4ee43132ae974794038821f7ca5465ae556) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_deb.bbclass')
0 files changed, 0 insertions, 0 deletions