summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--image/backends/iso.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/image/backends/iso.cc b/image/backends/iso.cc
index eee9b5a..b0936c3 100644
--- a/image/backends/iso.cc
+++ b/image/backends/iso.cc
@@ -184,7 +184,7 @@ public:
}
/* REQ: ISO.1 */
- if(fs::exists(this->ir_dir, ec)) {
+ if(fs::exists(this->ir_dir, ec) && opts.find("keep") == opts.end()) {
output_info("CD backend", "removing old IR tree", this->ir_dir);
/* try to umount first, just in case
* We don't care if the call fails.