mirror of https://git.48k.eu/ogclient
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: 0bd037c1a409c65fbcb01355ee0dd6dca770330emore_events
parent
91077da273
commit
87e738b33f
|
@ -335,7 +335,7 @@ class OgLiveOperations:
|
|||
raise ValueError('Target partition has no filesystem present')
|
||||
|
||||
cambiar_acceso(user=self._smb_user, pwd=self._smb_pass)
|
||||
ogCopyEfiBootloader(disk, partition)
|
||||
ogCopyEfiBootLoader(disk, partition)
|
||||
ogReduceFs(disk, partition)
|
||||
|
||||
cmd1 = shlex.split(f'partclone.{fstype} -I -C --clone -s {padev} -O -')
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue