summaryrefslogtreecommitdiff
path: root/test/test-functions
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2022-04-17 19:49:17 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2022-07-04 09:41:06 +0200
commit17082e8ac1b5335465876d100774893ba735fca4 (patch)
treea30858a5d77959b34fce2c879e05e160ed913614 /test/test-functions
parent8afe2f53b25ca99bc5bd1ec0c5dff7e183712577 (diff)
downloadsystemd-17082e8ac1b5335465876d100774893ba735fca4.tar.gz
test: resize the terminal automagically with INTERACTIVE_DEBUG=yes
Diffstat (limited to 'test/test-functions')
-rw-r--r--test/test-functions12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/test-functions b/test/test-functions
index fde174913c..d5572ecd6c 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -1748,14 +1748,12 @@ install_debug_tools() {
local getty_override="${initdir:?}/etc/systemd/system/serial-getty@.service.d"
mkdir -p "$getty_override"
echo -e "[Service]\nEnvironment=TERM=linux" >"$getty_override/default-TERM.conf"
+ echo 'export TERM=linux' >>"$initdir/etc/profile"
- cat >"$initdir/etc/motd" <<EOF
-To adjust the terminal size use:
- export COLUMNS=xx
- export LINES=yy
-or
- stty cols xx rows yy
-EOF
+ if command -v resize >/dev/null; then
+ image_install resize
+ echo "resize" >>"$initdir/etc/profile"
+ fi
fi
}