Article View: linux.debian.bugs.dist
Article #4036Bug#1153648: chkboot: Autopkgtest times out in unack-changes
From: Willow Carlson-Huber
Date: Tue, 10 Nov 2026 17:10
Date: Tue, 10 Nov 2026 17:10
75 lines
4514 bytes
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==--
Technical Details
Message-ID:
<NXXw5-b3vn-13@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Willow Carlson-Huber <willow.carlsonhuber@canonical.com> Newsgroups: linux.debian.bugs.dist Subject: Bug#1153648: chkboot: Autopkgtest times out in unack-changes Date: Tue, 10 Nov 2026 18:10:01 +0100 Message-ID: <NXXw5-b3vn-13@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Nov 10 17:01:10 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.65 Reply-To: Willow Carlson-Huber <willow.carlsonhuber@canonical.com>, 1153648@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: willow.carlsonhuber@canonical.com, lyknode@debian.org X-Debian-Pr-Message: report 1153648 X-Debian-Pr-Package: chkboot X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: chkboot Content-Type: multipart/mixed; boundary="===============6103190343678704849==" MIME-Version: 1.0 X-Mailer: reportbug 13.2.0+ubuntu1 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2001867 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 75 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 10 Nov 2026 10:58:15 -0600 X-Original-Message-ID: <179432989582.3040233.8572209953039856354.reportbug@willow-workbuntu>