diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-26 02:42:11 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-26 02:42:11 -0500 |
commit | 441543b73cffd6c589e4c848113dd126d984e07f (patch) | |
tree | 34e884b5c66748ebf65d193a3f93489b1b4ecae0 /hscript | |
parent | 82ca73034e9fc0756945ddbd9c9008a8b6443d69 (diff) | |
download | horizon-441543b73cffd6c589e4c848113dd126d984e07f.tar.gz horizon-441543b73cffd6c589e4c848113dd126d984e07f.tar.bz2 horizon-441543b73cffd6c589e4c848113dd126d984e07f.tar.xz horizon-441543b73cffd6c589e4c848113dd126d984e07f.zip |
hscript: Ensure root mounts aren't required for image
Diffstat (limited to 'hscript')
-rw-r--r-- | hscript/script_v.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hscript/script_v.cc b/hscript/script_v.cc index 8fd1327..b91af8d 100644 --- a/hscript/script_v.cc +++ b/hscript/script_v.cc @@ -556,7 +556,7 @@ bool Horizon::Script::validate() const { #undef CHECK_EXIST_PART_LV /* REQ: Runner.Validate.mount.Root */ - if(seen_mounts.find("/") == seen_mounts.end()) { + if(seen_mounts.find("/") == seen_mounts.end() && !opts.test(ImageOnly)) { failures++; output_error("installfile:0", "mount: no root mount specified"); } |