Opened 5 years ago
Last modified 3 years ago
Reported by: pmatilai Assigned to: RpmTickets Priority: minor Milestone: rpm-4.11.0 Component: rpm Version: RPM Development Keywords: Cc:
When calculating disk-space needs for a transaction, rpm currently doesn't take into account the amount of disk it temporarily needs for unpacking the files before moving into place. For example on package reinstall rpm thinks the transaction will succeed as it doesn't need any more space than the currently installed package, but when space is tight it can easily fail, eg:
# rpm -Uvh /home/pmatilai/rpmbuild/RPMS/noarch/dsneedtest-1.0-1.noarch.rpm
Preparing... ########################################### [100%]
1:dsneedtest ########################################### [100%]
# dd if=/dev/zero of=/boot/fillme
# rpm -Uvh --force dsneedtest-1.0-1.noarch.rpm
Preparing... ########################################### [100%]
1:dsneedtest ########################################### [100%]
error: unpacking of archive failed on file /boot/de.txt;4c5ffe6f: cpio: write
error: dsneedtest-1.0-1.noarch: install failed
Finally fixed in https://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=85df102165fdbe64978f2019d757d400e7448218