]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix chroot rpmdb path
authorReto Gantenbein <reto.gantenbein@linuxmonk.ch>
Sat, 7 Jan 2017 01:36:38 +0000 (02:36 +0100)
committerReto Gantenbein <reto.gantenbein@linuxmonk.ch>
Sat, 7 Jan 2017 01:47:26 +0000 (02:47 +0100)
Signed-off-by: Reto Gantenbein <reto.gantenbein@linuxmonk.ch>
templates/lxc-fedora.in

index 05a3b65063dfe630b119bc7312c9c971aeee7d86..ae9f8f03d78dbe058ad188c7ffc4c6d360e50b92 100644 (file)
@@ -611,7 +611,7 @@ download_fedora()
     # It might happen, that the dnf used above will write an incompatible
     # RPM database for the version running in the rootfs. Rebuild it.
     echo "Fixing up RPM databases"
-    rm -f "${CHROOT_DIR}${INSTALL_ROOT}"/var/lib/rpm/__db*
+    rm -f "${setup_rootfs}"/var/lib/rpm/__db*
     chroot "${setup_rootfs}" rpm --rebuilddb
 
     chroot_umounts "${setup_rootfs}"