Skip to content

Commit

Permalink
Revert "blueos_startup_update: add 'remove_console' step"
Browse files Browse the repository at this point in the history
This reverts commit a2f1aca.
  • Loading branch information
Williangalvani authored and patrickelectric committed May 31, 2024
1 parent a2f1aca commit 718fa60
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions core/tools/blueos_startup_update/blueos_startup_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,24 +446,6 @@ def run_command_is_working():
return True


def remove_console():
"""
removes "console=serial0,115200" from cmdline.txt
"""
if not cmdline_file:
logger.error("cmdline unknown, aborting console patch")
return False
cmdline_content = load_file(cmdline_file).strip().split(" ")
unpatched_cmdline_content = cmdline_content.copy()

new_cmdline = " ".join([content for content in cmdline_content if "console=serial" not in content])

if unpatched_cmdline_content != new_cmdline:
save_file(cmdline_file, new_cmdline, "before_remove_console")
return True
return False


def main() -> int:
start = time.time()
current_git_version = os.getenv("GIT_DESCRIBE_TAGS")
Expand All @@ -490,7 +472,6 @@ def main() -> int:

# TODO: parse tag as semver and check before applying patches
patches_to_apply = [
remove_console,
update_startup,
ensure_user_data_structure_is_in_place,
ensure_nginx_permissions,
Expand Down

0 comments on commit 718fa60

Please sign in to comment.