summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-09-20 17:06:42 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-09-20 17:06:42 -0500
commit7ffae2acb546ef6362243b69419db9b1ba1e8e25 (patch)
tree84d68bc77e457839188709c4bffd5cd95b51fb08
parent3786b3b76afe5c68c7309f97150d5a8c279119c5 (diff)
downloadhorizon-7ffae2acb546ef6362243b69419db9b1ba1e8e25.tar.gz
horizon-7ffae2acb546ef6362243b69419db9b1ba1e8e25.tar.bz2
horizon-7ffae2acb546ef6362243b69419db9b1ba1e8e25.tar.xz
horizon-7ffae2acb546ef6362243b69419db9b1ba1e8e25.zip
hscript: Force extfs creation
This works around the '/dev/xxx already has a filesystem' thing on CLI installs.
-rw-r--r--hscript/disk.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/hscript/disk.cc b/hscript/disk.cc
index c5e1e36..0cc4c8f 100644
--- a/hscript/disk.cc
+++ b/hscript/disk.cc
@@ -675,9 +675,8 @@ bool Filesystem::execute() const {
}
if(_type == Ext2 || _type == Ext3 || _type == Ext4) {
- const std::string dev_node(
- device().substr(device().find_last_of('/') + 1));
args.push_back("-q");
+ args.push_back("-F");
}
args.push_back(_block);