Commit b88d7bb6 by Dwight Engen Committed by Stéphane Graber

Always rebuild rpm database

Always rebuild the rpm database with the guest's rpm so there are no db version mismatches when you boot the guest and run rpm or yum. Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com>
parent b90270a5
......@@ -412,9 +412,13 @@ container_rootfs_create()
$db_dump_cmd $db |$db_load_cmd $db.new
mv $db.new $db
done
chroot $container_rootfs rpm --rebuilddb
fi
# the host rpm may not be the same as the guest, rebuild the db with
# the guest rpm version
echo "Rebuilding rpm database"
rm -f $container_rootfs/var/lib/rpm/__db*
chroot $container_rootfs rpm --rebuilddb >/dev/null 2>&1
) 200>/var/lock/subsys/lxc-oracle-$name
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment