summaryrefslogtreecommitdiffstats
path: root/src/utils/legacy.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-03-25 09:53:48 +0100
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-03-26 13:32:58 +0100
commit55fadef718711ad6ddfc3fc29380a4cf0dddc38e (patch)
tree6dacd4f8b17f1fcfc546ade15cdfa9d0bfb533b2 /src/utils/legacy.py
parent57787dab5499a38915b5e2f702844553abd2ea2a (diff)
utils: drop ogCopyEfiBootLoader script
Implement a Python equivalent of ogCopyEfiBootLoader as the function copy_efi_bootloader. This function copies the contents of the folder of the EFI loader in the ESP into a ogBoot folder at the root of the partition target of an image creation. copy_efi_bootloader is a Windows only functionality.
Diffstat (limited to 'src/utils/legacy.py')
-rw-r--r--src/utils/legacy.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/utils/legacy.py b/src/utils/legacy.py
index 76fc6c6..e740450 100644
--- a/src/utils/legacy.py
+++ b/src/utils/legacy.py
@@ -243,13 +243,3 @@ def configureOs(disk, partition):
raise OSError(f'Error processing configureOsCustom: {e}') from e
return out
-
-
-def ogCopyEfiBootLoader(disk, partition):
- cmd = f'ogCopyEfiBootLoader {disk} {partition}'
- try:
- proc = subprocess.run(cmd,
- shell=True,
- check=True)
- except OSError as e:
- raise OSError(f'Error processing ogCopyEfiBootLoader: {e}') from e