diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-04-29 14:33:25 +0000 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-05-05 15:13:07 +0200 |
commit | d3696d878f9ed6eed46723550dff8c1b914b62da (patch) | |
tree | 1fa148403389203ce1bb7ec32a9e88d76ae24443 /scripts/image-build/raw_image.py | |
parent | 78819c07645a41fc5328b6636755d887282ad109 (diff) | |
download | vyos-build-d3696d878f9ed6eed46723550dff8c1b914b62da.tar.gz vyos-build-d3696d878f9ed6eed46723550dff8c1b914b62da.zip |
build: T3664: fail the build on external command errors
(cherry picked from commit 7dfd9232da787a7befbc4338d4eb21fee4325174)
Diffstat (limited to 'scripts/image-build/raw_image.py')
-rw-r--r-- | scripts/image-build/raw_image.py | 6 |
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) |