From 954af31c76e4aa81bed71d8df5dde4184917ef22 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Thu, 26 May 2011 14:09:00 -0400 Subject: [PATCH] fixup rb.postinstall linktree for use with --force --- src/pylorax/treebuilder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index a33e094e..72254b58 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -114,7 +114,9 @@ class RuntimeBuilder(object): '''Do some post-install setup work with runtime-postinstall.tmpl''' # link configdir into runtime root beforehand configdir_path = "tmp/config_files" - linktree(configdir, join(self.vars.root, configdir_path)) + fullpath = join(self.vars.root, configdir_path) + remove(fullpath) + linktree(configdir, fullpath) self.runtemplate("runtime-postinstall.tmpl", configdir=configdir_path) def cleanup(self):