diff options
-rw-r--r-- | image/backends/tar.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/image/backends/tar.cc b/image/backends/tar.cc index a110acb..1f9c631 100644 --- a/image/backends/tar.cc +++ b/image/backends/tar.cc @@ -107,10 +107,12 @@ public: void *buff; std::string target = this->ir_dir + "/target"; + output_info("tar backend", "unmounting ancillary filesystems"); run_command("umount", {"-R", (ir_dir + "/target/sys")}); umount((ir_dir + "/target/proc").c_str()); run_command("umount", {"-R", (ir_dir + "/target/dev")}); + output_info("tar backend", "creating archive"); for(const auto& dent : fs::recursive_directory_iterator(target, ec)) { fs::path relpath = dent.path().lexically_relative(target); std::string pathstr(dent.path().native()); @@ -164,6 +166,7 @@ public: archive_entry_clear(entry); } + output_info("tar backend", "archive created", this->out_path); ret: archive_entry_free(entry); return code; |