summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-09-01 15:30:44 +0200
committerChristian Breunig <christian@breunig.cc>2026-09-01 15:37:23 +0200
commitbe6933e4f787b0ecef4564a6346a1252139226b3 (patch)
treea499f4037c56453c17f704cab71779d67887fec7 /scripts
parentfc873d7a27e0077417b0963ae2553d0c5e7a0540 (diff)
downloadvyos-build-be6933e4f787b0ecef4564a6346a1252139226b3.tar.gz
vyos-build-be6933e4f787b0ecef4564a6346a1252139226b3.zip
oci: T9269: seed the VyOS pre-login banner
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/iso-to-oci8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/iso-to-oci b/scripts/iso-to-oci
index b2077d2c..b2e54b92 100755
--- a/scripts/iso-to-oci
+++ b/scripts/iso-to-oci
@@ -62,6 +62,14 @@ OCI_IMAGE="vyos-${VERSION}-oci-${ARCH}.tar.xz"
# fix locales for correct system configuration loading
sed -i 's/^LANG=.*$/LANG=C.UTF-8/' "${UNSQUASHFS}/etc/default/locale"
+# seed the VyOS pre-login banner - /etc/issue is owned by the base-files
+# package and only replaced once system_login_banner.py runs on the first
+# commit, but getty(8) is up long before that and would greet the user with
+# "Debian GNU/Linux 12". Keep in sync with default_config_data in
+# system_login_banner.py
+printf 'Welcome to VyOS - \\n \\l\n\n' > "${UNSQUASHFS}/etc/issue"
+: > "${UNSQUASHFS}/etc/issue.net"
+
# optional step: Decrease docker image size by deleting not necessary files for container
rm -rf "${UNSQUASHFS}/boot"
rm -rf "${UNSQUASHFS}/lib/firmware/"