From f6c8b2ff99be070e22477156f8ccdcf89aec8861 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 26 Oct 2019 02:12:27 -0500 Subject: hscript: Implement DiskLabel::execute --- hscript/script.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'hscript/script.cc') 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 */ -- cgit v1.2.3-60-g2f50