Path: csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Ben Hutchings Newsgroups: linux.debian.bugs.dist,linux.debian.kernel Subject: Bug#944779: initramfs-tools-core: debug setting does not turn on tracing for scripts called by init Date: Mon, 17 Nov 2025 00:30:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sun Nov 16 23:21:13 2025 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -2.599 Reply-To: Ben Hutchings , 944779@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-kernel@lists.debian.org X-Debian-Pr-Message: followup 944779 X-Debian-Pr-Package: initramfs-tools-core X-Debian-Pr-Source: initramfs-tools Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-8ALEdTGTMqBodMPUH9dC" User-Agent: Evolution 3.56.2-7 MIME-Version: 1.0 X-Sa-Exim-Connect-IP: 2a02:578:851f:1502:391e:c5f5:10e2:b9a3 X-Sa-Exim-Mail-From: ben@decadent.org.uk X-Sa-Exim-Scanned: No (on maynard); SAEximRunCond expanded to false X-Debian-Message: from BTS X-Mailing-List: archive/latest/1937093 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 61 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 17 Nov 2025 00:20:03 +0100 X-Original-Message-ID: <97eee63ce785a6afc6896c55415dbcb298d60538.camel@decadent.org.uk> X-Original-References: <157380607448.19376.9735049102609964337.reportbug@crass-HP-ZBook-15-G2> <157380607448.19376.9735049102609964337.reportbug@crass-HP-ZBook-15-G2> Xref: csiph.com linux.debian.bugs.dist:1270459 linux.debian.kernel:90096 --=-8ALEdTGTMqBodMPUH9dC Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Control: tag -1 wontfix On Fri, 15 Nov 2019 02:21:14 -0600 Glenn Washburn wrote: > Package: initramfs-tools-core > Version: 0.130ubuntu3.9 > Severity: normal > Tags: newcomer >=20 > Dear Maintainer, >=20 > When adding "debug" to the kernel commandline debug output is turned on a= nd is > very useful for debugging.=C2=A0 However, none of the scripts (eg. local-= premount/resume) > recognize the debug variable to turn on tracing as in init. I simply adde= d the > line "[ -n "${debug}" ] && set -x" as the first line in local-premount/re= sume > and now I get debug logging when the debug kernel parameter is added.=C2= =A0 This line > should be added to all scripts, or at least the scripts run by "run_parts= ". I think this would be a surprising interpretation of the "debug" kernel parameter, and it could leak sensitive information to the screen. So I won't be making this change. Ben. --=20 Ben Hutchings Beware of programmers who carry screwdrivers. - Leonard Brandwein --=-8ALEdTGTMqBodMPUH9dC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAmkaXCMACgkQ57/I7JWG EQnd1xAAw5piLSUwPg9Nukb9HiUIfb8aa0He1Q/boQobF9ZD+vZAjK6YS2MGlrmI 4MjeqwZBB7UT14QElZoa2arISU5s949qaWhDVDPvAiiDmJp0lLCu4CuEf0tmTMUx OGOEzmnK9fO5s8ta9x2/Ls7ei/bz1HERTgYbfHuUfeLRp0oo8LBJJLLff8jNZWgK 3ctlsBIHeVulPD8HQP7O3T9NjTaogw52fD186H4QS3bW+klgPSPPTNwpTRigAAqQ XvksVxjq3onWGQZZI8kRPKuIFh3fAE8j4LlBunLGabMaU3jPB4hhZQ+AzApS306s /kJiHuvsqqrayQkqn+g9GNMJgmkbPFmqibXw3kYfC5paoGn5kzk8qP0wwLbkej9p QRnXpkLUUAjpuBpZxOI6YohK8mQ7pTqqiSyTkpUSl/cz5nlZE+Rq+EQxR8hBu21D a6FunNcBkIrwn6xGYnX3NMmLr8pndJKCrwzXhPwsoTz3qx3LZYUgT8tGeI8QYcMF tpNy/2WccD06VFO+L/rSyMHPA3LG/AiUIoTtGt31wHxVh+gVX1mHC9r+apaT68a4 X7fiUpNehardtMr4jE7IuAQIEPuGEaZhoxmIhgD6rmx+6xzk6jKHLjcjaIyYVN4I OmxREG1BZqDeGCOrFbYh/otFudvmy/OgtOhy6Ok0Pbf1ZRYqn18= =Jsw7 -----END PGP SIGNATURE----- --=-8ALEdTGTMqBodMPUH9dC--