diff options
author | Jeffrey C Honig <jeffrey.honig@windriver.com> | 2013-11-21 01:34:41 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-22 14:08:33 +0000 |
commit | 33c97ee94ded3f3e5e55477ce86ca0206a3afb55 (patch) | |
tree | 52e8ceab85ba8c2171099e7b07f1d64ccb031bea /meta/classes/rootfs_rpm.bbclass | |
parent | 739fba172c20d1951283757bad50d79d181b40aa (diff) | |
download | poky-33c97ee94ded3f3e5e55477ce86ca0206a3afb55.tar.gz |
rootfs_*.bbclass: List which post-install scripts can not be run
When preping a read-only rootfs and finding some post-install
scripts that can not be run, list the names of said scripts to
avoid having to look around the rootfs to find a list.
(From OE-Core rev: 0188120691f433fdccf71b92618115195278c0af)
Signed-off-by: Jeffrey C Honig <jeffrey.honig@windriver.com>
Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index 6c68ac89fb..1a0c2255a9 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
@@ -115,8 +115,9 @@ fakeroot rootfs_rpm_do_rootfs () { | |||
115 | 115 | ||
116 | if ${@base_contains("IMAGE_FEATURES", "read-only-rootfs", "true", "false" ,d)}; then | 116 | if ${@base_contains("IMAGE_FEATURES", "read-only-rootfs", "true", "false" ,d)}; then |
117 | if [ -d ${IMAGE_ROOTFS}${sysconfdir}/rpm-postinsts ] ; then | 117 | if [ -d ${IMAGE_ROOTFS}${sysconfdir}/rpm-postinsts ] ; then |
118 | if [ "`ls -A ${IMAGE_ROOTFS}${sysconfdir}/rpm-postinsts`" != "" ] ; then | 118 | failed_pkgs=$(ls -A ${IMAGE_ROOTFS}${sysconfdir}/rpm-postinsts) |
119 | bberror "Some packages could not be configured offline and rootfs is read-only." | 119 | if [ -n "$failed_pkgs" ] ; then |
120 | bberror "The following post-install scripts could not be run offline and rootfs is read-only: $failed_pkgs" | ||
120 | exit 1 | 121 | exit 1 |
121 | fi | 122 | fi |
122 | fi | 123 | fi |