summaryrefslogtreecommitdiff
path: root/hscript/disk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'hscript/disk.cc')
-rw-r--r--hscript/disk.cc3
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");