diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-05-22 11:27:31 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-10-04 10:43:49 -0500 |
commit | 77cf17e21ae42cf67eea0887d4e2e03e4fffb995 (patch) | |
tree | 44f2b08fe2fe17cd527412b6bf0eb47b48424245 /image | |
parent | 43f8dc6aacf659ddb2c5d648c83b7d1ac87e1ad7 (diff) | |
download | horizon-77cf17e21ae42cf67eea0887d4e2e03e4fffb995.tar.gz horizon-77cf17e21ae42cf67eea0887d4e2e03e4fffb995.tar.bz2 horizon-77cf17e21ae42cf67eea0887d4e2e03e4fffb995.tar.xz horizon-77cf17e21ae42cf67eea0887d4e2e03e4fffb995.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.
Diffstat (limited to 'image')
-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; |