summaryrefslogtreecommitdiff
path: root/hscript/script.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-26 02:12:27 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-26 02:12:27 -0500
commitf6c8b2ff99be070e22477156f8ccdcf89aec8861 (patch)
tree9e63851f88f72dce4296a0c9e015eb5fb24070ff /hscript/script.cc
parentcd2ab0ea31fd4dc9305c1d5e08100eafaff19f7e (diff)
downloadhorizon-f6c8b2ff99be070e22477156f8ccdcf89aec8861.tar.gz
horizon-f6c8b2ff99be070e22477156f8ccdcf89aec8861.tar.bz2
horizon-f6c8b2ff99be070e22477156f8ccdcf89aec8861.tar.xz
horizon-f6c8b2ff99be070e22477156f8ccdcf89aec8861.zip
hscript: Implement DiskLabel::execute
Diffstat (limited to 'hscript/script.cc')
-rw-r--r--hscript/script.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/hscript/script.cc b/hscript/script.cc
index cd15089..b913057 100644
--- a/hscript/script.cc
+++ b/hscript/script.cc
@@ -876,7 +876,14 @@ bool Script::execute() const {
}
}
- /* disklabel */
+ /* REQ: Runner.Execute.disklabel */
+ for(auto &label : this->internal->disklabels) {
+ if(!label->execute(opts)) {
+ EXECUTE_FAILURE("disk");
+ return false;
+ }
+ }
+
/* partition */
/* encrypt PVs */
/* lvm_pv */