summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-06-13 00:31:47 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-06-13 00:31:47 -0500
commitf2c20d3ad7103758eddfb080b54e10691ea61132 (patch)
treec455e75d08642adb00ac2dc3e9d58abdcbed4080
parent2ed5e528bcbda82fb57e7e93ae51497976132712 (diff)
downloadhorizon-f2c20d3ad7103758eddfb080b54e10691ea61132.tar.gz
horizon-f2c20d3ad7103758eddfb080b54e10691ea61132.tar.bz2
horizon-f2c20d3ad7103758eddfb080b54e10691ea61132.tar.xz
horizon-f2c20d3ad7103758eddfb080b54e10691ea61132.zip
image: Add 'keep' option to ISO backend
-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.