diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-16 18:07:27 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-16 18:07:27 +0200 |
commit | b4544f196c2beededdd76f581690b1490c755dac (patch) | |
tree | b2563bcd7ddb074a577c3b8d25f14d0b4a91287a | |
parent | 1dfb3c65bca02c22c449e29f3b128a709edd2c3f (diff) | |
download | vyos-1x-b4544f196c2beededdd76f581690b1490c755dac.tar.gz vyos-1x-b4544f196c2beededdd76f581690b1490c755dac.zip |
T2305: include release train in "show version" output
-rwxr-xr-x | src/op_mode/version.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/op_mode/version.py b/src/op_mode/version.py index 8599c958f..2791f5e5c 100755 --- a/src/op_mode/version.py +++ b/src/op_mode/version.py @@ -53,6 +53,8 @@ def read_file(name): version_output_tmpl = """ Version: VyOS {{version}} +Release Train: {{release_train}} + Built by: {{built_by}} Built on: {{built_on}} Build UUID: {{build_uuid}} @@ -102,7 +104,7 @@ if __name__ == '__main__': elif run(""" grep '^overlay /' /proc/mounts >/dev/null """) != 0: boot_via = "legacy non-image installation" version_data['boot_via'] = boot_via - + # Get hardware details from DMI version_data['hardware_vendor'] = read_file('/sys/class/dmi/id/sys_vendor') |