summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/legacy.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/legacy.py b/src/utils/legacy.py
index 7ea2bd6..84bd245 100644
--- a/src/utils/legacy.py
+++ b/src/utils/legacy.py
@@ -53,3 +53,13 @@ def ogChangeRepo(ip):
return subprocess.run(f'ogChangeRepo {ipaddr}',
shell=True)
+
+
+def ogCopyEfiBootloader(disk, partition):
+ cmd = f'ogCopyEfiBootloader {disk} {partition]'
+ try:
+ proc = subprocess.run(cmd,
+ shell=True)
+ except:
+ logging.error('Exception when running ogCopyEfiBootloader')
+ raise ValueError('Subprocess error: ogCopyEfiBootloader')