summaryrefslogtreecommitdiff
path: root/hscript/script.cc
diff options
context:
space:
mode:
Diffstat (limited to 'hscript/script.cc')
-rw-r--r--hscript/script.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/hscript/script.cc b/hscript/script.cc
index 70381d7..cac5f3e 100644
--- a/hscript/script.cc
+++ b/hscript/script.cc
@@ -299,7 +299,7 @@ Script *Script::load(std::istream &sstream, const ScriptOptions &opts) {
if(!the_script->internal->rootpw) {
MISSING_ERROR("rootpw")
}
- if(the_script->internal->mounts.size() == 0) {
+ if(the_script->internal->mounts.size() == 0 && !opts.test(Image)) {
MISSING_ERROR("mount")
}
}