]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_rpm: Add 50M to IMAGE_ROOTFS_EXTRA_SPACE for zypper /var space
authorSaul Wold <sgw@linux.intel.com>
Thu, 7 Jul 2011 16:39:32 +0000 (09:39 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Jul 2011 22:01:20 +0000 (23:01 +0100)
[YOCTO #1171]

This is a temporary fix to address the fact that zypper's db configuation
uses a large amount of /var space. When the correct'ed zypper config can
be applied, this fix can be removed. The zypper bug for yocto is 1174
http://bugzilla.pokylinux.org/show_bug.cgi?id=1174

Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/rootfs_rpm.bbclass

index 3a11858cd02b4e91be2d58f522ba5b0531197ff9..b554bae34efcc1a74080c483c6d44dbe3ae3565d 100644 (file)
@@ -3,6 +3,10 @@
 #
 
 ROOTFS_PKGMANAGE = "rpm zypper"
+
+# Add 50Meg of extra space for zypper database space
+IMAGE_ROOTFS_EXTRA_SPACE_append = "${@base_contains("PACKAGE_INSTALL", "zypper", " + 51200", "" ,d)}"
+
 # Postinstalls on device are handled within this class at present
 ROOTFS_PKGMANAGE_BOOTSTRAP = ""