diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-03-24 08:50:54 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-03-24 08:50:54 -0500 |
commit | 188d00bf06c6b2dba2d5d9b75fb1fc05666dee68 (patch) | |
tree | 3e9ac07c468e5d501acd4f416a5c9c72c82c23cf | |
parent | 1f67d2793e2abb7c833172a0a1966d76b1b9a06a (diff) | |
download | horizon-188d00bf06c6b2dba2d5d9b75fb1fc05666dee68.tar.gz horizon-188d00bf06c6b2dba2d5d9b75fb1fc05666dee68.tar.bz2 horizon-188d00bf06c6b2dba2d5d9b75fb1fc05666dee68.tar.xz horizon-188d00bf06c6b2dba2d5d9b75fb1fc05666dee68.zip |
hscript: Don't overwrite fstab with each mount
-rw-r--r-- | hscript/disk.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hscript/disk.cc b/hscript/disk.cc index 2718e49..225148b 100644 --- a/hscript/disk.cc +++ b/hscript/disk.cc @@ -885,7 +885,8 @@ bool Mount::execute() const { ec.message()); } } - std::ofstream fstab_f(script->targetDirectory() + "/etc/fstab"); + std::ofstream fstab_f(script->targetDirectory() + "/etc/fstab", + std::ios::app); if(!fstab_f) { output_error("installfile:" + std::to_string(this->lineno()), "mount: failure opening /etc/fstab for writing"); |