From bf52153581bf58e787c4765b5a4c5fafe2c26c9f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 14 Apr 2011 18:17:43 +0100 Subject: [PATCH] Delete file so db_load doesn't run incrementally. It turns out that db_load incrementally updates the database (instead of writing a new one). Remove the old database to force db_load to write a new one. This also ensures that we handle write failure gracefully. Cherry picked from commit 67493bfca44d436143d825b155bf2bc38990ea82 and backported to stable-1.10 branch. --- images/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/images/Makefile.am b/images/Makefile.am index d45e699..e4a910a 100644 --- a/images/Makefile.am +++ b/images/Makefile.am @@ -174,7 +174,9 @@ fedora.img: guest-aux/make-fedora-img.sh guest-aux/fedora-name.db bash $< guest-aux/fedora-name.db: guest-aux/fedora-name.db.txt - $(DB_LOAD) $@ < $< + rm -f $@ $@-t + $(DB_LOAD) $@-t < $< + mv $@-t $@ # Make a (dummy) Debian image. debian.img: guest-aux/make-debian-img.sh -- 1.8.3.1