What changed, and why it matters
This commit is a routine build/maintenance change. It updates two helper scripts to explicitly call Python 3 instead of relying on a system default 'python' command, and removes a Dockerfile step that forced 'python' to point to Python 3. There is no security-relevant change to the firmware or its behavior.
No security action required. Treat as normal build-system maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch changes the shebang of scripts/expand_template and scripts/get_version from ‘#!/usr/bin/env python’ to ‘#!/usr/bin/env python3’. It also removes the Dockerfile instruction ‘update-alternatives –install /usr/bin/python python /usr/bin/python3 1’ and bumps the container version. These are compatibility/build-hygiene changes only; no code logic, cryptography, or device-facing behavior is modified.
Changed components
Dockerfilescripts/expand_templatescripts/get_versionInspect captured patch +3 / −6
diff --git a/.containerversion b/.containerversion
index 0691f67..59343b0 100644
--- a/.containerversion
+++ b/.containerversion
@@ -1 +1 @@
-52
+53
diff --git a/Dockerfile b/Dockerfile
index 4bf0a7a..6587a49 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -106,9 +106,6 @@ RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
rm /tmp/protoc-21.2.zip
ENV PATH=/opt/protoc/bin:$PATH
-# Make Python3 the default
-RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
-
# Developer tools
RUN apt-get update && apt-get install -y \
bash-completion
diff --git a/scripts/expand_template b/scripts/expand_template
index ec17524..e8fb133 100755
--- a/scripts/expand_template
+++ b/scripts/expand_template
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Expand python templates"""
from string import Template
diff --git a/scripts/get_version b/scripts/get_version
index 0c9bf2a..84efbdf 100755
--- a/scripts/get_version
+++ b/scripts/get_version
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Parse the tags and strip the prefix
First argument should be prefix to match against
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.