summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-02-24 21:05:47 +0100
committerGitHub <noreply@github.com>2026-02-24 21:05:47 +0100
commit1ebebdfadc9d9f5793f9f99bcadc72ac58bf70e9 (patch)
treeb423ffee7aeb797cbdadddf98c24850d32f07cb7 /src
parent557e1730b03638d3ee5e7a270d1958c436c8d917 (diff)
parent33669098f2a63b4cd7d40aadb53d62a3d61c2e21 (diff)
downloadvyos-1x-1ebebdfadc9d9f5793f9f99bcadc72ac58bf70e9.tar.gz
vyos-1x-1ebebdfadc9d9f5793f9f99bcadc72ac58bf70e9.zip
Merge pull request #4915 from sever-sever/T8120
T8120: Add support AMA console for ARM devices
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/image_installer.py2
-rwxr-xr-xsrc/op_mode/image_manager.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py
index a924d188e..f0a347b73 100755
--- a/src/op_mode/image_installer.py
+++ b/src/op_mode/image_installer.py
@@ -761,7 +761,7 @@ def console_hint() -> str:
path = '/dev/tty'
name = Path(path).name
- if name == 'ttyS0':
+ if name in ['ttyS0', 'ttyAMA0']:
return 'S'
else:
return 'K'
diff --git a/src/op_mode/image_manager.py b/src/op_mode/image_manager.py
index 40668793e..985db96dd 100755
--- a/src/op_mode/image_manager.py
+++ b/src/op_mode/image_manager.py
@@ -33,7 +33,7 @@ DELETE_IMAGE_PROMPT_MSG: str = 'Select an image to delete:'
MSG_DELETE_IMAGE_RUNNING: str = 'Currently running image cannot be deleted; reboot into another image first'
MSG_DELETE_IMAGE_DEFAULT: str = 'Default image cannot be deleted; set another image as default first'
-ConsoleType: TypeAlias = Literal['tty', 'ttyS']
+ConsoleType: TypeAlias = Literal['tty', 'ttyS', 'ttyAMA']
def annotate_list(images_list: list[str]) -> list[str]:
"""Annotate list of images with additional info