diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2020-06-03 21:13:56 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2020-06-03 21:13:56 +0000 |
commit | 598e9e679e6554b8c0f26ada5822f4a3254cec03 (patch) | |
tree | 794792e067a9807a9846ff5333c9a81d4478e7e6 /image/backends/iso.cc | |
parent | 1f685acece95b06b62cab8d81cc26e29d6c13967 (diff) | |
parent | 028a85a03b2df48d776db1f9d834089aa96f22c3 (diff) | |
download | horizon-598e9e679e6554b8c0f26ada5822f4a3254cec03.tar.gz horizon-598e9e679e6554b8c0f26ada5822f4a3254cec03.tar.bz2 horizon-598e9e679e6554b8c0f26ada5822f4a3254cec03.tar.xz horizon-598e9e679e6554b8c0f26ada5822f4a3254cec03.zip |
Merge branch 'sroracle' into 'master'
Miscellaneous fixes
See merge request adelie/horizon!2
Diffstat (limited to 'image/backends/iso.cc')
-rw-r--r-- | image/backends/iso.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/image/backends/iso.cc b/image/backends/iso.cc index a7e2dd7..004cba8 100644 --- a/image/backends/iso.cc +++ b/image/backends/iso.cc @@ -85,7 +85,7 @@ bool copy_volume_icon_to(fs::path ir_dir) { } bool write_etc_mtab_to(fs::path target) { - std::ofstream mtab(target.append("/etc/conf.d/mtab")); + std::ofstream mtab(target.append("etc/conf.d/mtab")); if(!mtab) { output_error("CD backend", "failed to open mtab configuration"); return false; @@ -101,7 +101,7 @@ bool write_etc_mtab_to(fs::path target) { } bool write_fstab_to(fs::path target) { - std::ofstream fstab{target.append("/etc/fstab")}; + std::ofstream fstab{target.append("etc/fstab")}; if(!fstab) { output_error("CD backend", "failed to open fstab"); return false; @@ -127,7 +127,7 @@ bool write_fstab_to(fs::path target) { bool write_etc_issue_to(fs::path target) { error_code ec; - const fs::path dest{target.append("/etc/issue")}; + const fs::path dest{target.append("etc/issue")}; const fs::path src{find_data_file("issue")}; if(src.has_filename()) { @@ -407,7 +407,7 @@ public: if(!params) { output_warning("CD backend", "couldn't read ISO params"); } else { - params >> raw_arch; + std::getline(params, raw_arch); } } } |