The path of the RPM DB has changed in c10s, it's now in
/usr/lib/sysimage/rpm, with a symlink in /var/lib/rpm for compatibity.
Without the patch, the chroot is created with a RPM DB in /var/lib/rpm
but then calling "rpm --rebuilddb" from the chroot rebuilds the DB in
/usr/lib/sysimage/rpm which leads to inconsistency in the next dnf
calls.
Closes-Bug: #2127785
Change-Id: Iae352ea5fd4d4342178327444f91fb19b1a50511
Signed-off-by: Gregory Thiemonge <gthiemon@redhat.com>