Skip to content

Commit 3e6acf3

Browse files
committed
Fixed BOOT_ORDER step creating duplicate lines
While looked-for, found lines were not set resulting in duplicate entries. Fixes #41
1 parent 33f00f1 commit 3e6acf3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/provisioner/utils/raspberry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ def update_eeprom(*, verbose: bool = False):
9292
found = {"BOOT_ORDER": False, "HDMI_DELAY": False}
9393
for line in ps.stdout.splitlines():
9494
if BOOTORDER_RE.match(line.strip()):
95+
found["BOOT_ORDER"] = True
9596
new_lines.append(f"BOOT_ORDER={new_bootorder.value}")
9697
elif HDMI_DELAY_RE.match(line.strip()):
98+
found["HDMI_DELAY"] = True
9799
new_lines.append("HDMI_DELAY=1")
98100
else:
99101
new_lines.append(line)

0 commit comments

Comments
 (0)