Closed super7ramp closed 6 years ago
Recently, openSUSE has changed location of its RPM database from /var/lib/rpm to /usr/lib/sysimage/rpm (#38).
/var/lib/rpm
/usr/lib/sysimage/rpm
/var/lib/rpm still exists but it's now a link to /usr/lib/sysimage/rpm.
It looks like btrfs fi defragment -r doesn't follow links, no defragmentation is performed on the real location.
btrfs fi defragment -r
This commit fixes this by performing defragmentation on the real database location retrieved from rpm --eval %_dbpath.
rpm --eval %_dbpath
Added a commit to fix cron symlink removals upon rpm package update (related to boo#904518).
Merged, thanks.
Recently, openSUSE has changed location of its RPM database from
/var/lib/rpm
to/usr/lib/sysimage/rpm
(#38)./var/lib/rpm
still exists but it's now a link to/usr/lib/sysimage/rpm
.It looks like
btrfs fi defragment -r
doesn't follow links, no defragmentation is performed on the real location.This commit fixes this by performing defragmentation on the real database location retrieved from
rpm --eval %_dbpath
.