From f2c20d3ad7103758eddfb080b54e10691ea61132 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 13 Jun 2020 00:31:47 -0500 Subject: image: Add 'keep' option to ISO backend --- image/backends/iso.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3-70-g09d2