summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-05-22 11:27:31 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-05-22 11:27:31 -0500
commit0a876b1975db1a882a0a6116a1df81456af9cd8a (patch)
tree0b2ee8efd74900aa9be372492dea1c04820bac62
parent2a99f950ff3eb863c913a2bf25911933670c47de (diff)
downloadhorizon-0a876b1975db1a882a0a6116a1df81456af9cd8a.tar.gz
horizon-0a876b1975db1a882a0a6116a1df81456af9cd8a.tar.bz2
horizon-0a876b1975db1a882a0a6116a1df81456af9cd8a.tar.xz
horizon-0a876b1975db1a882a0a6116a1df81456af9cd8a.zip
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.
-rw-r--r--image/backends/tar.cc3
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;