summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-03-30 22:05:45 +0200
committerChristian Breunig <christian@breunig.cc>2026-03-31 15:08:56 +0200
commit52c3ea6742aed4058464c8c9cc690b2acadd7cb0 (patch)
treea75411ea3da9052285190f4cd762e3c59b39611f /data
parentbd318b43f8b414af9da3f458071486cae2062077 (diff)
downloadvyos-build-52c3ea6742aed4058464c8c9cc690b2acadd7cb0.tar.gz
vyos-build-52c3ea6742aed4058464c8c9cc690b2acadd7cb0.zip
flavor: T8375: add flavor.json during build into resulting image
In order for amd64 or arm64 images to know their serial console settings, we embed a new file named "flavor.json" under "/usr/share/vyos" into the resulting image. The file holds configuration parameters unique to the build flavor. Corresponding library functions are available via a Python vyos.flavor module.
Diffstat (limited to 'data')
-rw-r--r--data/architectures/amd64.toml4
-rw-r--r--data/architectures/arm64.toml5
2 files changed, 7 insertions, 2 deletions
diff --git a/data/architectures/amd64.toml b/data/architectures/amd64.toml
index 784d77ad..4a864d7c 100644
--- a/data/architectures/amd64.toml
+++ b/data/architectures/amd64.toml
@@ -12,4 +12,6 @@ packages = [
"amd64-microcode"
]
-serial_interface = "ttyS0,115200" \ No newline at end of file
+console_type = "ttyS"
+console_num = "0"
+console_speed = "115200"
diff --git a/data/architectures/arm64.toml b/data/architectures/arm64.toml
index 6837232f..452e3e1e 100644
--- a/data/architectures/arm64.toml
+++ b/data/architectures/arm64.toml
@@ -5,4 +5,7 @@ packages = [
]
bootloaders = "grub-efi"
squashfs_compression_type = "xz -b 256k -always-use-fragments -no-recovery"
-serial_interface = "ttyAMA0,115200"
+
+console_type = "ttyAMA"
+console_num = "0"
+console_speed = "115200"