diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index f0facff4..23e144d2 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -234,7 +234,7 @@ class TemplateRunner(object): self.treeinfo(section, "initrd", dest) def hardlink(self, src, dest): - if isdir(dest): + if isdir(self._out(dest)): dest = join(dest, basename(src)) os.link(self._out(src), self._out(dest))