mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
rootfs_(ipk|deb|rpm).bbclass: check package installation status after ROOTFS_POSTPROCESS_COMMAND
Since the intercept fall-back procedure will change the package installation status, do the checking after ROOTFS_POSTPROCESS_COMMAND ends. (From OE-Core rev: 414c3918baccc2166bba536c956eebaeb49aace3) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6cca7efa6f
commit
5bb362a0ba
@@ -87,15 +87,6 @@ fakeroot rootfs_rpm_do_rootfs () {
|
||||
|
||||
${ROOTFS_POSTINSTALL_COMMAND}
|
||||
|
||||
if ${@base_contains("IMAGE_FEATURES", "read-only-rootfs", "true", "false" ,d)}; then
|
||||
if [ -d ${IMAGE_ROOTFS}/etc/rpm-postinsts ] ; then
|
||||
if [ "`ls -A ${IMAGE_ROOTFS}/etc/rpm-postinsts`" != "" ] ; then
|
||||
bberror "Some packages could not be configured offline and rootfs is read-only."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Report delayed package scriptlets
|
||||
for i in ${IMAGE_ROOTFS}/etc/rpm-postinsts/*; do
|
||||
if [ -f $i ]; then
|
||||
@@ -126,7 +117,16 @@ EOF
|
||||
|
||||
${RPM_POSTPROCESS_COMMANDS}
|
||||
${ROOTFS_POSTPROCESS_COMMAND}
|
||||
|
||||
|
||||
if ${@base_contains("IMAGE_FEATURES", "read-only-rootfs", "true", "false" ,d)}; then
|
||||
if [ -d ${IMAGE_ROOTFS}/etc/rpm-postinsts ] ; then
|
||||
if [ "`ls -A ${IMAGE_ROOTFS}/etc/rpm-postinsts`" != "" ] ; then
|
||||
bberror "Some packages could not be configured offline and rootfs is read-only."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
rm -rf ${IMAGE_ROOTFS}/var/cache2/
|
||||
rm -rf ${IMAGE_ROOTFS}/var/run2/
|
||||
rm -rf ${IMAGE_ROOTFS}/var/log2/
|
||||
|
||||
Reference in New Issue
Block a user