summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-06-09 12:09:12 +0200
committerHelmut Grohne <helmut@subdivi.de>2023-06-09 12:13:38 +0200
commit95c7df2d210c1033ff8c4e2b6408def1c5037a5b (patch)
treea5bc53dcd660ed78e86b381c8fb6a7176c7414d6
parentd47385b96f77db9015e1fa3b79e13116c6e0daae (diff)
downloaddebvm-95c7df2d210c1033ff8c4e2b6408def1c5037a5b.tar.gz
the argument to setterm is --resize, not -resize
-rwxr-xr-xbin/debvm-run2
-rwxr-xr-xshare/customize-autologin.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/debvm-run b/bin/debvm-run
index f1cde97..759ab27 100755
--- a/bin/debvm-run
+++ b/bin/debvm-run
@@ -68,7 +68,7 @@ F<rootfs.ext4>, resulting in an ephemeral run.
Make sure C<$TERM> is set to a value known inside the VM.
You may need to install B<ncurses-term> for more definitions.
The serial console will miss events of resizing the terminal emulator.
-You may run C<setterm -resize> in that case.
+You may run C<setterm --resize> in that case.
=item How can I kill debvm-run?
diff --git a/share/customize-autologin.sh b/share/customize-autologin.sh
index 7b7a130..5f87168 100755
--- a/share/customize-autologin.sh
+++ b/share/customize-autologin.sh
@@ -5,7 +5,7 @@
# This is a mmdebstrap customize hook that configures automatic root login on a
# serial console. It also parses the TERM kernel cmdline and passes it as
# TERM to agetty. Since serial consoles do not transmit SIGWINCH, it causes
-# the shell to run setterm -resize on interactive, serial logins.
+# the shell to run setterm --resize on interactive, serial logins.
set -eu
@@ -18,7 +18,7 @@ if test -n "${TERM-}" && test -n "${PS1-}"; then
;;
/dev/tty*)
# Assume that every other tty is serial and should be resized.
- setterm -resize
+ setterm --resize
;;
esac
fi