Skip to content

Commit

Permalink
[Multiboot] - don't reset Root subdirectory if Recovery slot
Browse files Browse the repository at this point in the history
  • Loading branch information
TwolDE committed Dec 1, 2024
1 parent c197531 commit 1c59b41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/python/Tools/Multiboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ def getMultibootslots():
if not SystemInfo["HasKexecMultiboot"] and "sda" in slot["root"]: # Not Kexec Vu+ receiver -- sf8008 type receiver with sd card, reset value as SD card slot has no rootsubdir
slot["rootsubdir"] = None
slot["slotType"] = "SDCARD"
else:
elif "STARTUP_RECOVERY" not in file:
SystemInfo["HasRootSubdir"] = slot.get("rootsubdir")

if "kernel" not in slot.keys():
slot["kernel"] = f"{slot['root'].split('p')[0]}p{int(slot['root'].split('p')[1]) - 1}" # oldstyle MB kernel = root-1
else:
Expand Down

0 comments on commit 1c59b41

Please sign in to comment.