Debian: Update login banner to show current version

The software version in the login banner was hard coded
to 21.12.

This change derives the version from build-info, using the
same build procedure as platform-kickstarts uses.

Test Plan:
  Build / Install / Boot on Debian and verify
the banner shows the proper version at the login prompt.

Story: 2009754
Task: 45227
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Icb12f4da3029eee3fa87e4d09014858d50ee2f74
This commit is contained in:
Al Bailey 2022-04-29 21:01:28 +00:00
parent 682bacceb6
commit 96a5e56f5d
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,8 @@ Source: debian-release-config
Section: admin
Priority: optional
Maintainer: Starlingx Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13)
Build-Depends: debhelper-compat (= 13),
build-info-dev
Standards-Version: 4.4.1
Homepage: https://www.starlingx.io

View File

@ -1,7 +1,7 @@
#!/usr/bin/make -f
#export DH_VERBOSE = 1
RELEASE = 21.12
export RELEASE="$(shell grep SW_VERSION /usr/include/build_info.h | cut -d ' ' -f 3)"
DEBIAN_ROOT = $(CURDIR)/debian/tmp
%: