summaryrefslogtreecommitdiffstats
path: root/src/utils/legacy.py
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-09-14 10:52:45 +0200
committerJose M. Guisado <jguisado@soleta.eu>2022-09-14 17:12:14 +0200
commit87e738b33ffea0bb730cbe041189276a9627cdf7 (patch)
treea241184927fe0875e2bf43c9a8127f30e841a65d /src/utils/legacy.py
parent91077da273215596f07b7ebc858633dca350ad30 (diff)
image_restore: fix ogCopyEfiBootLoader
ogCopyEfiBootloader is an invalid legacy bash function name. Rename to the correct function name 'ogCopyEfiBootLoader' and rename utility python wrapper too. Fixes: 0bd037c1a409c65fbcb01355ee0dd6dca770330e
Diffstat (limited to 'src/utils/legacy.py')
-rw-r--r--src/utils/legacy.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/utils/legacy.py b/src/utils/legacy.py
index 84bd245..8f39fe2 100644
--- a/src/utils/legacy.py
+++ b/src/utils/legacy.py
@@ -1,4 +1,5 @@
import ipaddress
+import logging
import os
import subprocess
import shlex
@@ -55,11 +56,11 @@ def ogChangeRepo(ip):
shell=True)
-def ogCopyEfiBootloader(disk, partition):
- cmd = f'ogCopyEfiBootloader {disk} {partition]'
+def ogCopyEfiBootLoader(disk, partition):
+ cmd = f'ogCopyEfiBootLoader {disk} {partition}'
try:
proc = subprocess.run(cmd,
shell=True)
except:
- logging.error('Exception when running ogCopyEfiBootloader')
+ logging.error('Exception when running ogCopyEfiBootLoader subprocess')
raise ValueError('Subprocess error: ogCopyEfiBootloader')