summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vmdb/plugins/unpack_rootfs_plugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/vmdb/plugins/unpack_rootfs_plugin.py b/vmdb/plugins/unpack_rootfs_plugin.py
index dc67c01..005959f 100644
--- a/vmdb/plugins/unpack_rootfs_plugin.py
+++ b/vmdb/plugins/unpack_rootfs_plugin.py
@@ -38,7 +38,9 @@ class UnpackCacheStepRunner(vmdb.StepRunnerInterface):
tar_path = settings["rootfs-tarball"]
logging.debug(f"tar_path: {tar_path!r}")
if not tar_path:
- raise Exception("--rootfs-tarball MUST be set")
+ raise Exception(
+ "--rootfs-tarball MUST be set if using the 'unpack-rootfs' step"
+ )
if os.path.exists(tar_path):
vmdb.runcmd(["tar", "-C", rootdir, "-xf", tar_path, "--numeric-owner"])
state.rootfs_unpacked = True