]> code.ossystems Code Review - openembedded-core.git/commit
python-smartpm: Add checking for "rpm-ignoresize" option
authorChong Lu <Chong.Lu@windriver.com>
Mon, 13 Oct 2014 07:43:20 +0000 (15:43 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Oct 2014 16:31:56 +0000 (17:31 +0100)
commitfc0668a019eca422540ceab3efcd2b2a27dd79e0
treea661b577b760a2b6e7a708a0b563ff09aa62ee55
parente1efc61979b329c651c15acff1afeba2987397b5
python-smartpm: Add checking for "rpm-ignoresize" option

The do_rootfs takes a very long time when build host has mounted many NFS
devices. syscall lstat() was being called on every filesystem mounted on the
build host during building.
The reason for the lstat() is that rpm is verifying that enough free disk space
is available to do the install. However, since the install is into the target
rootfs it should not matter how much free space there is in the host mounts.
Add checking for "rpm-ignoresize", by it, smart can make whether RPM skip
checking for diskspace when install a rpm package.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/package_manager.py
meta/recipes-devtools/python/python-smartpm/smart-add-for-rpm-ignoresize-check.patch [new file with mode: 0644]
meta/recipes-devtools/python/python-smartpm_1.4.1.bb