🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Willow Carlson-Huber Tue, 10 Nov 2026 17:10
Bug#1153648: chkboot: Autopkgtest times out in unack-changes
#4036
Author: Willow Carlson-Huber
Date: Tue, 10 Nov 2026 17:10
75 lines
4514 bytes
This is a multi-part MIME message sent by reportbug.


--===============6103190343678704849==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: chkboot
Version: 1.3-8.2
Severity: normal
Tags: patch
X-Debbugs-Cc: willow.carlsonhuber@canonical.com

Dear Maintainer,

chkboot doesn't correctly detect non-interactive shells like the one used by autopkgtest when running tests in a VM. This prevents autopkgtest from correctly communicating with the VM and causes it to hang until it times out and fails the test. Changes have been contributed to autopkgtest that fix this problem, but the behavior still seems incorrect and should be resolved in chkboot.

See also https://bugs.launchpad.net/ubuntu/+source/chkboot/+bug/2168895.

-- System Information:
Debian Release: forky/sid
  APT prefers resolute-updates
  APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500, 'resolute'), (100, 'resolute-proposed'), (100, 'resolute-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 7.0.0-42-generic (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages chkboot depends on:
ii  init-system-helpers  1.69

chkboot recommends no packages.

Versions of packages chkboot suggests:
ii  x11-utils  7.7+7build1
ii  zenity     4.2.1-1

--===============6103190343678704849==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="0006-only-notify-on-terminal.patch"

Author: Pierre-Elliott Becue <pierre-elliott.becue@canonical.com>
Reviewed-by: Willow Carlson-Huber <willow.carlsonhuber@canonical.com>
Date: Tue, 29 Sep 2026 23:43:40 +0200
Subject: chkboot-profilealert: only run the check if stdout is on a terminal

---
 notification/chkboot-profilealert.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

--- a/notification/chkboot-profilealert.sh
+++ b/notification/chkboot-profilealert.sh
@@ -5,8 +5,9 @@
 #
 # license: GPLv2
 
-# only try to display chkboot changes if the 'profile' alert style has been
-# selected
-if grep "^CHKBOOT_STYLES=.*profile" /etc/default/chkboot > /dev/null; then
+# only try to display chkboot changes on a terminal, and only if the 'profile'
+# alert style has been selected: non-interactive login shells (su - -c,
+# sudo -i, lxc exec, autopkgtest...) must not get the alert in their output
+if [ -t 1 ] && grep "^CHKBOOT_STYLES=.*profile" /etc/default/chkboot > /dev/null; then
     chkboot-check
 fi

--===============6103190343678704849==--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads