1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-06 22:32:54 +02:00

tighten up efi split

This commit is contained in:
Kelly Brazil
2022-11-18 16:19:55 -08:00
parent 94d87b726f
commit 86ed39ecdd

View File

@ -67,7 +67,7 @@ def _process(proc_data: JSONDictType) -> JSONDictType:
"""
# check for EFI partition@boot-manager and split/add fields
if 'partition' in proc_data and '@' in proc_data['partition']: # type: ignore
new_part, efi_bootmgr = proc_data['partition'].split('@') # type: ignore
new_part, efi_bootmgr = proc_data['partition'].split('@', maxsplit=1) # type: ignore
proc_data['partition'] = new_part
proc_data['efi_bootmgr'] = efi_bootmgr