From 0a876b1975db1a882a0a6116a1df81456af9cd8a Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 22 May 2024 11:27:31 -0500 Subject: image: tar backend: Be noisier It is more reassuring to know that the process is running, and when it finishes successfully, rather than just a 'stuck' terminal with no displayed progress. --- image/backends/tar.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'image/backends') 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; -- cgit v1.2.3-60-g2f50