summaryrefslogtreecommitdiff
path: root/scripts/image-build/raw_image.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/image-build/raw_image.py')
-rw-r--r--scripts/image-build/raw_image.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/image-build/raw_image.py b/scripts/image-build/raw_image.py
index 67039a24..ae061990 100644
--- a/scripts/image-build/raw_image.py
+++ b/scripts/image-build/raw_image.py
@@ -25,11 +25,7 @@ import vyos.utils.process
SQUASHFS_FILE = 'live/filesystem.squashfs'
VERSION_FILE = 'version.json'
-
-def cmd(command):
- res = vyos.utils.process.call(command, shell=True)
- if res > 0:
- raise OSError(f"Command '{command}' failed")
+from utils import cmd
def mkdir(path):
os.makedirs(path, exist_ok=True)