diff options
Diffstat (limited to 'src/utils/image.py')
-rw-r--r-- | src/utils/image.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/utils/image.py b/src/utils/image.py index fe48a9c..a12c221 100644 --- a/src/utils/image.py +++ b/src/utils/image.py @@ -234,24 +234,3 @@ def restoreImageCustom(repo_ip, image_name, disk, partition, method): except OSError as e: raise OgError(f'Error processing restoreImageCustom: {e}') from e return proc.returncode - - -def configureOs(disk, partition): - """ - """ - if shutil.which('configureOsCustom'): - cmd_configure = f"configureOsCustom {disk} {partition}" - else: - cmd_configure = f"configureOs {disk} {partition}" - - try: - proc = subprocess.run(cmd_configure, - stdout=PIPE, - encoding='utf-8', - shell=True, - check=True) - out = proc.stdout - except OSError as e: - raise OgError(f'Error processing configureOsCustom: {e}') from e - - return out |