Merge pull request #1545 from dbungert/lp-2004040

tui: turn off systemd ShowStatus
This commit is contained in:
Dan Bungert 2023-02-02 07:05:53 -07:00 committed by GitHub
commit f47874bdc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -5,7 +5,16 @@ export PYTHONPATH=$SNAP/lib/python3.8/site-packages
if [ -n "$1" ]; then if [ -n "$1" ]; then
port=$1 port=$1
fi fi
# Stops some dmesg from overwriting the TUI.
/bin/dmesg -n 1 /bin/dmesg -n 1
# Stop the systemd service completion messages from doing the same.
# The systemd(1) manpage documents SIGRTMIN+21 as a method to set
# show_status=0. Without this, ongoing services such as the casper-md5check
# can result in service status message being written on top of the TUI.
/bin/kill "-SIGRTMIN+21" 1
if [ "$port" = "tty1" ]; then if [ "$port" = "tty1" ]; then
$SNAP/bin/subiquity-loadkeys $SNAP/bin/subiquity-loadkeys
setfont $SNAP/subiquity.psf setfont $SNAP/subiquity.psf